[Asterisk-code-review] CI: Add docker info to job summary (testsuite[15])
Jenkins2
asteriskteam at digium.com
Thu Jul 26 11:44:28 CDT 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/9714 )
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(-)
Approvals:
Jenkins2: Looks good to me, approved; Approved for Submit
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/9714
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I86f2d2dda9e836dbfc6ae8cf444703051089fbe0
Gerrit-Change-Number: 9714
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180726/6d77975e/attachment-0001.html>
More information about the asterisk-code-review
mailing list