Ver código fonte

Added Jenkinsfile

master
devopsef53 8 meses atrás
pai
commit
5e8bd65b99
1 arquivos alterados com 17 adições e 1 exclusões
  1. 17
    1
      Jenkinsfile

+ 17
- 1
Jenkinsfile Ver arquivo

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'''
} }
} }



Carregando…
Cancelar
Salvar