Browse Source

Added Jenkinsfile

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

+ 4
- 1
Jenkinsfile View File

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

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

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

terraform apply -auto-approve''' terraform apply -auto-approve'''
} }
} }

Loading…
Cancel
Save