Skip to content

Commit

Permalink
add Jenkinsfile.local
Browse files Browse the repository at this point in the history
  • Loading branch information
devopswise committed Jan 17, 2019
1 parent b933b4c commit 88077ec
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Jenkinsfile.local
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
pipeline {
agent { label 'jenkins-jnlp-slave-docker-cli' }

parameters { string(defaultValue: "master", description: 'What branch?', name: 'branchName')
string(defaultValue: "", description: 'Which server?', name: 'serverFqdn') }
parameters { string(defaultValue: "master", description: 'What branch?', name: 'CDT_BRANCH')
string(defaultValue: "", description: 'Which server?', name: 'CDT_SERVER_FQDN') }

environment {
CDT_BRANCH="${params.branchName}"
CDT_SERVER_FQDN="${params.serverFqdn}"
}
stages {
stage('run cdt-installer'){
steps {
Expand All @@ -20,7 +16,7 @@ pipeline {
string(credentialsId: 'AWS_SECRET_KEY', variable: 'AWS_SECRET_ACCESS_KEY')
]) {
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: "xterm"]) {
sh '''env && docker run -i \
sh '''docker run -i \
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
-e DO_NOT_PROVISION_EC2="true" \
Expand Down

0 comments on commit 88077ec

Please sign in to comment.