Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 739 Bytes

AnsiColorPlugin.md

File metadata and controls

26 lines (18 loc) · 739 Bytes

Enable this plugin to color the output for terraform plan and apply.

One-time setup:

// Jenkinsfile
@Library(['terraform-pipeline@v3.10']) _

Jenkinsfile.init(this, env)

AnsiColorPlugin.init() // Decorate your TerraformEnvironmentStages with the AnsiColor plugin

def validate = new TerraformValidateStage()

def deployQa = new TerraformEnvironmentStage('qa')
def deployUat = new TerraformEnvironmentStage('uat')
def deployProd = new TerraformEnvironmentStage('prod')

validate.then(deployQa)
        .then(deployUat)
        .then(deployProd)
        .build()