This repo contains examples on how to execute terraform via jenkins pipelines
- Bigstep Metalcloud Terraform Provider already installed https://github.com/bigstepinc/terraform-provider-metalcloud
- An up & running Jenkins
- A Bigstep Metalcloud account
To get started do the following:
- Add global credentials in Jenkins for Metalcloud variables: METALCLOUD_API_KEY, METALCLOUD_USER_EMAIL, METALCLOUD_ENDPOINT and TF_VAR_datacenter
- Create a new pipeline in Jenkins
- Select 'This project is parameterized' check-box and add 2 new parameters (optional step)
- Setup the job to pull the repo for the Jenkinsfile (pipeline).