/terraform_jenkins_pipeline_example

Metalcloud Terraform example project for a Jenkins based CI CD pipeline

Primary LanguageHCL

Bigstep Metalcloud Terraform Jenkins pipeline examples

This repo contains examples on how to execute terraform via jenkins pipelines

Requirements

Setup

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 Alt text
  • Create a new pipeline in Jenkins
  • Select 'This project is parameterized' check-box and add 2 new parameters (optional step) Alt text
  • Setup the job to pull the repo for the Jenkinsfile (pipeline). Alt text