active choice

main
ermisw 2023-10-04 12:18:09 +02:00
parent ef2bf6a116
commit a60cdab6a1
1 changed files with 9 additions and 27 deletions

36
Jenkinsfile vendored
View File

@ -14,6 +14,7 @@ vappHtml = """
return vappHtml return vappHtml
''']]]])]) ''']]]])])
pipeline { pipeline {
agent { agent {
label 'terraform-slave' label 'terraform-slave'
@ -22,32 +23,17 @@ pipeline {
parameters { parameters {
booleanParam(name: 'refresh', defaultValue: false, description: 'Refresh pipeline properties') booleanParam(name: 'refresh', defaultValue: false, description: 'Refresh pipeline properties')
} }
// environment {
// //KUBECONFIG = credentials('kubernetes-config')
// }
stages { stages {
// stage('test') {
// steps {
// sh 'python --version'
// }
// }
stage('Refresh properties') { stage('Refresh properties') {
if (Refresh) { steps {
currentBuild.result = 'ABORTED' if (Refresh) {
error('Stopping early…') currentBuild.result = 'ABORTED'
} error('Stopping early…')
}
}
} }
stage('TF Plan') { 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 { steps {
container('terraform') { container('terraform') {
withCredentials([[ 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}"
// }
// }
} }
} }