Better release note check 75/12175/2 v10.1.1
authorbeierlm <mark.beierl@canonical.com>
Tue, 7 Jun 2022 16:21:17 +0000 (12:21 -0400)
committerbeierlm <mark.beierl@canonical.com>
Tue, 7 Jun 2022 19:49:07 +0000 (21:49 +0200)
Only checks release notes for incoming patches, not
for merge jobs.

Change-Id: I895136d5369f836ddae66cd49a2911cd4aa945cb
Signed-off-by: beierlm <mark.beierl@canonical.com>
jenkins/ci-pipelines/ci_stage_2.groovy

index 72318f9..d17d715 100644 (file)
@@ -49,6 +49,20 @@ def ci_pipeline(mdg,url_prefix,project,branch,refspec,revision,do_stage_3,artifa
       }
     }
 
+    stage('Release Note Check') {
+      if (fileExists('devops-stages/stage-releasenote.sh')) {
+        if (!JOB_NAME.contains('merge')) {
+            sh "devops-stages/stage-releasenote.sh"
+        }
+        else {
+            println("Not checking release notes for merge job")
+        }
+      }
+      else {
+          println("No releasenote check present")
+      }
+    }
+
     container_name = "${project}-${branch}".toLowerCase()
 
     stage('Docker-Build') {