-
-
Save domdorn/9d53f37da39d18dc689b440a63951143 to your computer and use it in GitHub Desktop.
SBT, Artifactory Credentials + Jenkins Pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
environment { | |
ARTIFACTORY_ACCESS_TOKEN = credentials('acme-jenkins-artifactory-access-token') | |
} | |
stages { | |
stage('Compile & test & stage') { | |
steps { | |
script { | |
sh "echo 'credentials += Credentials(\"Artifactory Realm\", \"artifactory.power.inet\", \"${ARTIFACTORY_ACCESS_TOKEN_USR}\", \"${ARTIFACTORY_ACCESS_TOKEN_PSW}\")' > credentials.sbt" | |
} | |
script { | |
sh "sbt ';compile;test:compile;docker:stage;'" | |
} | |
.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment