try withCredentials

This commit is contained in:
Henry Oswald 2018-05-23 11:43:54 +01:00
parent 37ef1ba816
commit 352a8d3f19

View file

@ -25,10 +25,13 @@ pipeline {
stage('Acceptance Tests') {
steps {
sh 'DOCKER_COMPOSE_FLAGS="-f docker-compose.ci.yml" make test_acceptance'
withCredentials([usernamePassword(credentialsId: 'S3_DOCSTORE_TEST_AWS_KEYS', passwordVariable: 'AWS_SECRET', usernameVariable: 'AWS_ID')]) {
sh 'DOCKER_COMPOSE_FLAGS="-f docker-compose.ci.yml" AWS_BUCKET="sl-doc-archive-testing" AWS_ACCESS_KEY_ID=$AWS_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET make test_acceptance'
}
}
}
stage('Package and publish build') {
steps {
sh 'make publish'