Michal K 4 months ago
parent
commit
a6ca565837
1 changed files with 17 additions and 1 deletions
  1. 17
    1
      Jenkinsfile

+ 17
- 1
Jenkinsfile View File

pipeline { pipeline {
agent any agent any
stages { stages {
stage('Test') {
stage('Init') {
steps { steps {
echo 'Test stage' echo 'Test stage'
sh '''export PATH=$PATH:/var/jenkins_home
terraform init'''
}
}

stage('Plan') {
steps {
sh '''export PATH=$PATH:/var/jenkins_home
terraform plan'''
}
}

stage('Apply') {
steps {
sh '''export PATH=$PATH:/var/jenkins_home
terraform apply -auto-approve'''
} }
} }



Loading…
Cancel
Save