Skip to content

Commit 2346d1c

Browse files
committed
added workspace create command
1 parent 496c6f7 commit 2346d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-instance-first-script/Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pipeline {
3333
stage('Plan') {
3434
steps {
3535
sh 'pwd;cd terraform/aws-instance-first-script ; terraform init -input=false'
36-
// sh 'terraform workspace new ${environment}'
37-
sh 'pwd;cd terraform/aws-instance-first-script ;terraform workspace select ${environment};pwd;ls'
36+
sh 'terraform workspace new ${environment}'
37+
sh 'pwd;cd terraform/aws-instance-first-script ; terraform workspace select ${environment};pwd;ls'
3838
sh "pwd;cd terraform/aws-instance-first-script ;terraform plan -input=false -out tfplan ;pwd;ls"
3939
sh 'pwd;cd terraform/aws-instance-first-script ;terraform show -no-color tfplan > tfplan.txt'
4040
}

0 commit comments

Comments
 (0)