Skip to content

Commit b713f4a

Browse files
committed
Improve the build job description
1 parent ed79ef7 commit b713f4a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Jenkinsfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ pipeline {
4040
stages {
4141
stage('Display Parameters') {
4242
steps {
43-
echo "BUILD_TYPE=${params.BUILD_TYPE}"
44-
echo "PROMOTE=${params.PROMOTE}"
45-
echo "BRANCH_NAME=${env.BRANCH_NAME}"
4643
script {
4744
env.BUILD_TYPE = params.BUILD_TYPE
4845
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == null) {
@@ -56,6 +53,13 @@ pipeline {
5653
env.WITH_CREDENTIALS = false
5754
env.MAVEN_PROFILES = ""
5855
}
56+
def description = """
57+
BUILD_TYPE=${env.BUILD_TYPE}
58+
WITH_CREDENTIALS=${env.WITH_CREDENTIALS}
59+
PROMOTE=${env.PROMOTE}
60+
""".trim()
61+
echo description
62+
currentBuild.description = description.replace("\n", "<br/>")
5963
}
6064
}
6165
}

0 commit comments

Comments
 (0)