mirror of
https://github.com/bvanroll/environment-ff-stage-euw1-gkecluster-primary-production.git
synced 2025-08-28 19:12:39 +00:00
35 lines
564 B
Groovy
35 lines
564 B
Groovy
pipeline {
|
|
options {
|
|
disableConcurrentBuilds()
|
|
}
|
|
agent {
|
|
label "jenkins-maven"
|
|
}
|
|
environment {
|
|
DEPLOY_NAMESPACE = "jx-production"
|
|
}
|
|
stages {
|
|
stage('Validate Environment') {
|
|
steps {
|
|
container('maven') {
|
|
dir('env') {
|
|
sh 'jx step helm build'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Update Environment') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
container('maven') {
|
|
dir('env') {
|
|
sh 'jx step helm apply'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|