Browse Source

Added Jenkinsfile

master
devopscd7c 8 months ago
parent
commit
3baf367c09
1 changed files with 17 additions and 1 deletions
  1. 17
    1
      Jenkinsfile

+ 17
- 1
Jenkinsfile View File

@@ -1,9 +1,25 @@
pipeline {
agent any
stages {
stage('Test') {
stage('Init') {
steps {
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