Parcourir la source

try withCredentials

Henry Oswald il y a 8 ans
Parent
commit
352a8d3f19
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      services/docstore/Jenkinsfile

+ 4 - 1
services/docstore/Jenkinsfile

@@ -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'