active choice
parent
ef2bf6a116
commit
a60cdab6a1
|
|
@ -14,6 +14,7 @@ vappHtml = """
|
|||
return vappHtml
|
||||
|
||||
''']]]])])
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'terraform-slave'
|
||||
|
|
@ -22,32 +23,17 @@ pipeline {
|
|||
parameters {
|
||||
booleanParam(name: 'refresh', defaultValue: false, description: 'Refresh pipeline properties')
|
||||
}
|
||||
// environment {
|
||||
// //KUBECONFIG = credentials('kubernetes-config')
|
||||
// }
|
||||
|
||||
stages {
|
||||
// stage('test') {
|
||||
// steps {
|
||||
// sh 'python --version'
|
||||
// }
|
||||
// }
|
||||
stage('Refresh properties') {
|
||||
if (Refresh) {
|
||||
currentBuild.result = 'ABORTED'
|
||||
error('Stopping early…')
|
||||
}
|
||||
steps {
|
||||
if (Refresh) {
|
||||
currentBuild.result = 'ABORTED'
|
||||
error('Stopping early…')
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('TF Plan') {
|
||||
// agent {
|
||||
// docker {
|
||||
// image 'hashicorp/terraform:latest'
|
||||
// // Run the container on the node specified at the
|
||||
// // top-level of the Pipeline, in the same workspace,
|
||||
// // rather than on a new node entirely:
|
||||
// args '--entrypoint="" -u root -v /opt/jenkins/.aws:/root/.aws'
|
||||
|
||||
// }
|
||||
// }
|
||||
steps {
|
||||
container('terraform') {
|
||||
withCredentials([[
|
||||
|
|
@ -63,10 +49,6 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
// stage('Deploy Helm chart') {
|
||||
// steps {
|
||||
// sh "helm install ingress-nginx ./deploy/charts/ingress-nginx --namespace ingress-nginx --set controller.publishService.enabled=true --set controller.service.loadBalancerIP=${env.LB_IP}"
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue