Skip to content

Commit 0e114c6

Browse files
committed
Add Artifactory Deploy to Jenkinsfile
1 parent e2b7403 commit 0e114c6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Jenkinsfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,17 @@ try {
5656
}
5757

5858
if(currentBuild.result == 'SUCCESS') {
59-
parallel docs: {
59+
parallel artifactory: {
60+
stage('Artifactory Deploy') {
61+
node {
62+
checkout scm
63+
withCredentials([usernamePassword(credentialsId: '02bd1690-b54f-4c9f-819d-a77cb7a9822c', usernameVariable: 'ARTIFACTORY_USERNAME', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
64+
sh "./gradlew check artifactoryPublish -x check -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --no-daemon --stacktrace"
65+
}
66+
}
67+
}
68+
},
69+
docs: {
6070
stage('Deploy Docs') {
6171
node {
6272
checkout scm

0 commit comments

Comments
 (0)