CI: Fix placement of job summary statments
authorGeorge Joseph <gjoseph@digium.com>
Thu, 26 Jul 2018 23:54:36 +0000 (17:54 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 26 Jul 2018 23:55:41 +0000 (17:55 -0600)
Change-Id: Iace19e718f4e8fb48eb7dc9f98af53b115cc45f3

tests/CI/gates.jenkinsfile
tests/CI/periodics-daily.jenkinsfile
tests/CI/ref_debug.jenkinsfile

index b01362e..78a9d24 100644 (file)
@@ -61,10 +61,10 @@ pipeline {
                        }
                        steps {
                                /* Here's where we switch to scripted pipeline */
-                               manager.build.displayName = "${env.GERRIT_CHANGE_NUMBER}"
-                               manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Host: ${NODE_NAME}", false)
-
                                script {
+                                       manager.build.displayName = "${env.GERRIT_CHANGE_NUMBER}"
+                                       manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Host: ${NODE_NAME}", false)
+
                                        stage ("Checkout") {
                                                sh "sudo chown -R jenkins:users ."  
                                                env.GERRIT_PROJECT_URL = env.GERRIT_CHANGE_URL.replaceAll(/\/[0-9]+$/, "/${env.GERRIT_PROJECT}")
index 00804a1..2d72766 100644 (file)
@@ -24,9 +24,9 @@ pipeline {
                stage ("->") {
                        steps {
                                /* Here's where we switch to scripted pipeline */
-                               manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Host: ${NODE_NAME}", false)
-
                                script {
+                                       manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Host: ${NODE_NAME}", false)
+
                                        stage ("Checkout") {
                                                sh "sudo chown -R jenkins:users ."
                                                sh "printenv | sort"
index fbd954e..d046a49 100644 (file)
@@ -24,9 +24,9 @@ pipeline {
                stage ("->") {
                        steps {
                                /* Here's where we switch to scripted pipeline */
-                               manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Host: ${NODE_NAME}", false)
-
                                script {
+                                       manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Host: ${NODE_NAME}", false)
+
                                        stage ("Checkout") {
                                                sh "sudo chown -R jenkins:users ."  
                                                sh "printenv | sort"