December 2017
Beginner to intermediate
362 pages
8h 35m
English
The way we are going to promote build artifacts in Artifactory is by using the properties (key-value pair) feature. All builds that have passed performance testing will be applied a Performance-Tested=Yes tag. The code is as follows:
withCredentials([usernameColonPassword(credentialsId: 'artifactory-account', variable: 'credentials')]) { sh 'curl -u${credentials} -X PUT "http://172.17.8.108:8081/artifactory/api/storage/example-project/${BUILD_NUMBER}/hello-0.0.1.war?properties=Performance-Tested=Yes"';}
The following table gives the description the preceding code snippet:
|
Code |
Description |
|
withCredentials([usernameColonPassword(credentialsId: 'artifactory-account', variable: ... |
Read now
Unlock full access