Skip to content

Commit

Permalink
Trigger Terraform-EC2
Browse files Browse the repository at this point in the history
  • Loading branch information
ikambarov committed Feb 8, 2022
1 parent 1dfc910 commit a463760
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Aug-2021/packer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ node('packer'){
packer validate apache.json
"""
}

stage("Build"){
sh """
packer build apache.json
"""

build job: 'Terraform-EC2', parameters: [
string(name: 'environment', value: "${params.environment}"),
string(name: 'aminame', value: "${aminame}"),
string(name: 'terraformaction', value: 'apply')
]
}
}
}
}
}

0 comments on commit a463760

Please sign in to comment.