Просмотр исходного кода

Merge pull request #29786 from overleaf/gs-jenkins-gh-issue-web

web: Open GitHub issue in case of pipeline failure
GitOrigin-RevId: 0adbeb4d60cd658eccde42b4ce2874ce2623908f
Gernot Schulz 8 месяцев назад
Родитель
Сommit
93e6a230c7
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      services/web/Jenkinsfile

+ 9 - 0
services/web/Jenkinsfile

@@ -374,6 +374,15 @@ pipeline {
     always {
       junit checksName: 'Web test results', testResults: 'services/web/data/reports/junit-*.xml,services/web/data/reports/junit-*/**/*.xml'
     }
+    failure {
+      script {
+        if (env.BRANCH_NAME == 'main') {
+          node('built-in') {
+            sh '/usr/local/bin/open-gh-failure-issue'
+          }
+        }
+      }
+    }
     // Ensure tear down of test containers, then run general Jenkins VM cleanup.
     cleanup {
       dir('services/web') {