Skip to content

Commit

Permalink
Add Artifactory Deploy to Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Jun 8, 2017
1 parent 32751a2 commit fd244eb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,17 @@ try {
}

if(currentBuild.result == 'SUCCESS') {
parallel docs: {
parallel artifactory: {
stage('Artifactory Deploy') {
node {
checkout scm
withCredentials([usernamePassword(credentialsId: '02bd1690-b54f-4c9f-819d-a77cb7a9822c', usernameVariable: 'ARTIFACTORY_USERNAME', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
sh "./gradlew check artifactoryPublish -x check -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --no-daemon --stacktrace"
}
}
}
},
docs: {
stage('Deploy Docs') {
node {
checkout scm
Expand Down

0 comments on commit fd244eb

Please sign in to comment.