[Asterisk-code-review] CI: Add docker info to job summary (asterisk[13])
George Joseph
asteriskteam at digium.com
Thu Jul 26 11:34:16 CDT 2018
George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/9708
Change subject: CI: Add docker info to job summary
......................................................................
CI: Add docker info to job summary
Change-Id: I45d52005a9b692ad303c11792f226ace1e449901
---
M tests/CI/gates.jenkinsfile
M tests/CI/periodics-daily.jenkinsfile
M tests/CI/ref_debug.jenkinsfile
M tests/CI/unittests.jenkinsfile
4 files changed, 17 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/08/9708/1
diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile
index 82a39a3..b01362e 100644
--- a/tests/CI/gates.jenkinsfile
+++ b/tests/CI/gates.jenkinsfile
@@ -61,6 +61,9 @@
}
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 {
stage ("Checkout") {
sh "sudo chown -R jenkins:users ."
@@ -115,6 +118,8 @@
" --entrypoint=''"
def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
def outputdir = "tests/CI/output/Testsuite"
+
+ manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Image: ${randomImage}", false)
def img = docker.image(randomImage)
img.pull()
diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile
index 60b0ede..00804a1 100644
--- a/tests/CI/periodics-daily.jenkinsfile
+++ b/tests/CI/periodics-daily.jenkinsfile
@@ -24,6 +24,8 @@
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 {
stage ("Checkout") {
sh "sudo chown -R jenkins:users ."
@@ -40,6 +42,8 @@
" --entrypoint=''"
def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
def outputdir = "tests/CI/output/Testsuite"
+
+ manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Image: ${randomImage}", false)
def img = docker.image(randomImage)
img.pull()
diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile
index 7ef40e7..fbd954e 100644
--- a/tests/CI/ref_debug.jenkinsfile
+++ b/tests/CI/ref_debug.jenkinsfile
@@ -24,6 +24,8 @@
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 {
stage ("Checkout") {
sh "sudo chown -R jenkins:users ."
@@ -40,6 +42,8 @@
" --entrypoint=''"
def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
def outputdir = "tests/CI/output/Testsuite"
+
+ manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Image: ${randomImage}", false)
def img = docker.image(randomImage)
img.pull()
diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile
index 438213b..b019bee 100644
--- a/tests/CI/unittests.jenkinsfile
+++ b/tests/CI/unittests.jenkinsfile
@@ -63,6 +63,9 @@
}
steps {
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}")
@@ -117,6 +120,7 @@
" --entrypoint='' --name ${bt}-build"
def outputdir = "tests/CI/output/UnitTests"
+ manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Image: ${randomImage}", false)
def img = docker.image(randomImage)
img.pull()
img.inside(dockerOptions) {
--
To view, visit https://gerrit.asterisk.org/9708
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I45d52005a9b692ad303c11792f226ace1e449901
Gerrit-Change-Number: 9708
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180726/59ca38ca/attachment.html>
More information about the asterisk-code-review
mailing list