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

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