Browse Source

Added Jenkinsfile

master
devops8170 4 months ago
parent
commit
30226c9fef
1 changed files with 17 additions and 2 deletions
  1. 17
    2
      Jenkinsfile

+ 17
- 2
Jenkinsfile View File

@@ -1,9 +1,24 @@
pipeline {
agent any
stages {
stage('Test') {
stage('Init') {
steps {
echo 'Hello DevOps World!'
sh '''export PATH=$PATH:/var/jenkins_home
terraform init'''
}
}

stage('Plam') {
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