From 116a599b7ec4875b72cfcaac8f78d449892f256e Mon Sep 17 00:00:00 2001 From: George Joseph Date: Thu, 26 Jul 2018 17:54:36 -0600 Subject: [PATCH] CI: Fix placement of job summary statments Change-Id: Iace19e718f4e8fb48eb7dc9f98af53b115cc45f3 --- tests/CI/gates.jenkinsfile | 6 +++--- tests/CI/periodics-daily.jenkinsfile | 4 ++-- tests/CI/ref_debug.jenkinsfile | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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"