Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- parameters { choice(name: 'CHOICES', choices: ['dev', 'test', 'prod'], description: '') }
- stages {
- stage('Checkout') {
- checkout([$class: 'GitSCM', branches: [[name: '*/param.CHOICES']], extensions: [], userRemoteConfigs: [[url: 'github.com/example']]])
- }
- stage('Apply') {
- steps { sh terraform apply }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement