Created
January 11, 2021 18:24
-
-
Save cooltoast/87ee681589a21040e4ced5b0e2e534a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A Jenkins Pipeline definition. | |
pipeline { | |
stages { | |
stage('Deploy Infrastructure') { | |
steps { | |
// Go into the Terraform directory. | |
dir("${WORKSPACE}/path/to/my/terraform") { | |
ansiColor('xterm') { | |
// Apply infrastructure changes. | |
sh "terraform apply -auto-approve" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment