Advertisement
rippie

Untitled

Nov 2nd, 2022
1,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.37 KB | Source Code | 0 0
  1. pipeline {
  2.     agent any
  3.     parameters { choice(name: 'CHOICES', choices: ['dev', 'test', 'prod'], description: '') }
  4.     stages {
  5.         stage('Checkout') {
  6.             checkout([$class: 'GitSCM', branches: [[name: '*/param.CHOICES']], extensions: [], userRemoteConfigs: [[url: 'github.com/example']]])
  7.         }
  8.         stage('Apply') {
  9.             steps { sh terraform apply }
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement