From fd244eb95c0890d94d7b917babb53f1a7f9b03c0 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 8 Jun 2017 16:59:13 -0500 Subject: [PATCH] Add Artifactory Deploy to Jenkinsfile --- Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2873a1d94d..c48879efb7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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