mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Add when condition for infrastructure Jenkinsfile
This commit is contained in:
parent
354b5dd200
commit
c85bed39e2
1 changed files with 12 additions and 0 deletions
12
infra/Jenkinsfile
vendored
12
infra/Jenkinsfile
vendored
|
@ -15,6 +15,10 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('init_and_plan') {
|
||||
when {
|
||||
changeset "infra/terraform/*"
|
||||
}
|
||||
|
||||
steps {
|
||||
dir('infra/terraform') {
|
||||
withCredentials([azureServicePrincipal(credentialsId: 'jenkins-sp',
|
||||
|
@ -32,6 +36,10 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('apply_changes') {
|
||||
when {
|
||||
changeset "infra/terraform/*"
|
||||
}
|
||||
|
||||
steps {
|
||||
dir('infra/terraform') {
|
||||
withCredentials([azureServicePrincipal(credentialsId: 'jenkins-sp',
|
||||
|
@ -49,6 +57,10 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('setup_aks') {
|
||||
when {
|
||||
changeset "infra/terraform/*"
|
||||
}
|
||||
|
||||
steps {
|
||||
echo "$ACR_SECRET"
|
||||
withCredentials([azureServicePrincipal(credentialsId: 'jenkins-sp',
|
||||
|
|
Loading…
Reference in a new issue