Browse Source

Added Jenkinsfile

master
J_Hayward 4 months ago
parent
commit
a14527eaa2
1 changed files with 16 additions and 1 deletions
  1. 16
    1
      Jenkinsfile

+ 16
- 1
Jenkinsfile View File

@@ -3,7 +3,22 @@ pipeline {
stages {
stage('Test') {
steps {
echo 'Test success'
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