[Asterisk-code-review] CI: Add docker info to job summary (testsuite[master])

George Joseph asteriskteam at digium.com
Thu Jul 26 11:37:39 CDT 2018


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/9712


Change subject: CI:  Add docker info to job summary
......................................................................

CI:  Add docker info to job summary

Change-Id: I86f2d2dda9e836dbfc6ae8cf444703051089fbe0
---
M CI/gates.jenkinsfile
M CI/unittests.jenkinsfile
2 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/12/9712/1

diff --git a/CI/gates.jenkinsfile b/CI/gates.jenkinsfile
index cccbc93..9f42ec4 100644
--- a/CI/gates.jenkinsfile
+++ b/CI/gates.jenkinsfile
@@ -60,6 +60,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}")
@@ -116,6 +119,7 @@
 					def outputDir = "CI/output"
 					def astDir = "${outputDir}/asterisk"
 
+					manager.createSummary("/plugin/workflow-job/images/48x48/pipelinejob.png").appendText("Docker Image: ${randomImage}", false)
 					def img = docker.image(randomImage)
 					img.pull()
 					img.inside(dockerOptions) {
diff --git a/CI/unittests.jenkinsfile b/CI/unittests.jenkinsfile
index 250e108..83ed1df 100644
--- a/CI/unittests.jenkinsfile
+++ b/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}")
@@ -119,6 +122,7 @@
 					def outputDir = "CI/output"
 					def astDir = "${outputDir}/asterisk"
 
+					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/9712
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86f2d2dda9e836dbfc6ae8cf444703051089fbe0
Gerrit-Change-Number: 9712
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/9cedb9b2/attachment.html>


More information about the asterisk-code-review mailing list