Skip to content

Commit

Permalink
fix: added a new stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouyan Ahmadi committed Apr 30, 2021
1 parent d32ea55 commit b564afd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aws/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
pipeline {
options {
timestamps()
skipDefaultCheckout()
}
agent {label 'slave'}
parameters {
password (name: 'AWS_ACCESS_KEY_ID')
password (name: 'AWS_SECRET_ACCESS_KEY')
Expand All @@ -10,6 +15,12 @@ pipeline {
AWS_SECRET_ACCESS_KEY = "${params.AWS_SECRET_ACCESS_KEY}"
}
stages {
stage('Checkout script') {
steps {
cleanWs()
checkout scm
}
}
stage('Terraform Init') {
steps {
sh "${env.TERRAFORM_HOME}/terraform init -input=false"
Expand Down

0 comments on commit b564afd

Please sign in to comment.