瀏覽代碼

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 10 月之前
父節點
當前提交
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') {