Skip to content

Commit 568f871

Browse files
committed
github integration
1 parent 58b2e19 commit 568f871

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

Jenkinsfile.eval

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
pipeline {
22
agent any
33

4+
options {
5+
disableConcurrentBuilds()
6+
buildDiscarder(logRotator(numToKeepStr: '10'))
7+
}
8+
9+
triggers {
10+
githubPush()
11+
}
12+
413
tools {
514
nodejs 'Node24'
615
}
@@ -63,10 +72,28 @@ pipeline {
6372
sh 'docker compose -f docker-compose.eval.yml down -v || true'
6473
}
6574
failure {
66-
echo 'Evaluation tests failed. Check archived artifacts for details.'
75+
script {
76+
if (env.GIT_COMMIT) {
77+
githubNotify context: 'eval-tests',
78+
status: 'FAILURE',
79+
description: 'Evaluation tests failed',
80+
repo: 'Cognito',
81+
credentialsId: 'github-cognito-webhook',
82+
account: 'KoderFPV'
83+
}
84+
}
6785
}
6886
success {
69-
echo 'All evaluation tests passed!'
87+
script {
88+
if (env.GIT_COMMIT) {
89+
githubNotify context: 'eval-tests',
90+
status: 'SUCCESS',
91+
description: 'Evaluation tests passed',
92+
repo: 'Cognito',
93+
credentialsId: 'github-cognito-webhook',
94+
account: 'KoderFPV'
95+
}
96+
}
7097
}
7198
}
7299
}

0 commit comments

Comments
 (0)