From: George Joseph Date: Thu, 26 Jul 2018 23:54:36 +0000 (-0600) Subject: CI: Fix placement of job summary statments X-Git-Tag: 15.6.0-rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc68a3505b48d1f527a307137d7b4d896a94cab;p=thirdparty%2Fasterisk.git CI: Fix placement of job summary statments Change-Id: Iace19e718f4e8fb48eb7dc9f98af53b115cc45f3 --- diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile index b01362ed99..78a9d244c9 100644 --- a/tests/CI/gates.jenkinsfile +++ b/tests/CI/gates.jenkinsfile @@ -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}") diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile index 00804a13f5..2d7276673d 100644 --- a/tests/CI/periodics-daily.jenkinsfile +++ b/tests/CI/periodics-daily.jenkinsfile @@ -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" diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile index fbd954e28c..d046a49bdd 100644 --- a/tests/CI/ref_debug.jenkinsfile +++ b/tests/CI/ref_debug.jenkinsfile @@ -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"