Skip to content

Commit fb61bec

Browse files
r0mikGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Fix adding description in manageArtifacts"
2 parents d5f0512 + c0c029e commit fb61bec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/com/mirantis/mk/Workflow.groovy

+5-1
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,11 @@ def manageArtifacts(entrypointDirectory, storeArtsInJenkins = false, artifactory
13001300
artifactoryRepo: "artifactory/${artifactoryRepoPath}",
13011301
]
13021302
def artDescription = mcpArtifactory.uploadArtifactsToArtifactory(artConfig)
1303-
currentBuild.description += "${artDescription}<br>"
1303+
if (currentBuild.description) {
1304+
currentBuild.description += "${artDescription}<br>"
1305+
} else {
1306+
currentBuild.description = "${artDescription}<br>"
1307+
}
13041308

13051309
junit(testResults: "${entrypointDirectory}/**/*.xml", allowEmptyResults: true)
13061310

0 commit comments

Comments
 (0)