Create a Pipeline in jenkins for your terraform automation
- Go to Jenkins > New Items. Enter terraform-pipeline in name field > Choose Pipeline > Click OK
Now Save
Next
Bitbucket Changes
- Create a new Bitbucket Repo and call it terraform-pipeline
- Go to Repository Settings after creation and select Webhooks
- Click Add Webhooks
- Enter tf_token as the Title
- Copy and paste the url as shown below
http://JENKINS_URL:8080/job/terraform-pipeline/buildWithParameters?token=tf_token
- Status should be active
- Click on skip certificate verification
- triggers --> repository push
Now Whenever you push changes, to bitbucket , it will trigger the pipeline


No comments:
Post a Comment