You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Jenkinsfile 432B

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
123456789101112131415161718192021222324252627
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('Init') {
  5. steps {
  6. echo 'Test stage'
  7. sh '''export PATH=$PATH:/var/jenkins_home
  8. terraform init'''
  9. }
  10. }
  11. stage('Plan') {
  12. steps {
  13. sh '''export PATH=$PATH:/var/jenkins_home
  14. terraform plan'''
  15. }
  16. }
  17. stage('Apply') {
  18. steps {
  19. sh '''export PATH=$PATH:/var/jenkins_home
  20. terraform apply -auto-approve'''
  21. }
  22. }
  23. }
  24. }