Created
April 27, 2019 07:19
-
-
Save pravargauba/66fb4eb5882df72a0217e1054135b047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('Checkout') { | |
steps { | |
checkout scm | |
sh ' cd devops/terraform/modules/ec2/' | |
sh """ sed -i '/instance_type=.*/c instance_type='\""${instance_type}"\"'' terraform.tfvars | |
sed -i '/key_pair=.*/c key_pair='\""${key_pair}"\"'' terraform.tfvars | |
sed -i '/ami_name=.*/c ami_name='\""${ami_name}"\"'' terraform.tfvars | |
sed -i '/subnet=.*/c subnet='\""${subnet}"\"'' terraform.tfvars | |
sed -i '/root_vol_size=.*/c root_vol_size='\""${root_vol_size}"\"'' terraform.tfvars | |
sed -i '/root_vol_delete_on_termination=.*/c root_vol_delete_on_termination='\""${root_vol_delete_on_termination}"\"'' terraform.tfvars | |
""" | |
} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment