Skip to content

Commit

Permalink
Add aws testing job
Browse files Browse the repository at this point in the history
  • Loading branch information
devopswise committed Jan 16, 2019
1 parent 02755fa commit 8b72924
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Jenkinsfile.aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pipeline {
agent any
currentBuild.result = "SUCCESS"
stages {
try {
stage('run cdt-installer'){
withCredentials([string(credentialsId: 'AWS_ACCESS_KEY', variable: 'AWS_ACCESS_KEY_ID'),
string(credentialsId: 'AWS_SECRET_KEY', variable: 'AWS_SECRET_ACCESS_KEY'),
]) {
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: "xterm"]) {
sh '''docker run -i \
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
-e KEY_PAIR=dwtools \
-e PEM_FILE=/opt/cdt/dwtools.pem \
-e DEBUG="-vv" \
-v /opt/source/cdt-test/aws:/opt/cdt \
devopswise/cdt-installer:latest "cdt --launch" '''
}
}
}
}
catch (err) {
currentBuild.result = "FAILURE"
throw err
}
}
}

0 comments on commit 8b72924

Please sign in to comment.