Update staging file with baa4676 commit

This commit is contained in:
Jenkins 2019-10-23 06:53:58 +00:00 committed by gavinfish
parent baa4676412
commit cd385f651a
3 changed files with 17 additions and 5 deletions

10
Jenkinsfile vendored
View file

@ -23,6 +23,10 @@ pipeline {
} }
stage('build') { stage('build') {
when {
changeset "src/*"
}
steps { steps {
sh ''' sh '''
./mvnw clean package ./mvnw clean package
@ -33,6 +37,10 @@ pipeline {
stage('image build') { stage('image build') {
when {
changeset "src/*"
}
steps { steps {
acrQuickTask azureCredentialsId: "jenkins-sp", acrQuickTask azureCredentialsId: "jenkins-sp",
registryName: "jenkinsdemosacr", registryName: "jenkinsdemosacr",
@ -45,6 +53,7 @@ pipeline {
stage('update staging config') { stage('update staging config') {
when { when {
changeset "src/*"
environment name: "DEPLOY_TO", value: 'staging' environment name: "DEPLOY_TO", value: 'staging'
} }
steps { steps {
@ -62,6 +71,7 @@ pipeline {
stage('update production config') { stage('update production config') {
when { when {
changeset "src/*"
environment name: "DEPLOY_TO", value: 'production' environment name: "DEPLOY_TO", value: 'production'
} }
steps { steps {

View file

@ -12,12 +12,12 @@ spec:
metadata: metadata:
labels: labels:
app: pet-clinic app: pet-clinic
version: pc-e4876bb version: pc-baa4676
spec: spec:
containers: containers:
- name: pet-clinic - name: pet-clinic
image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-e4876bb" image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-baa4676"
ports: ports:
- containerPort: 8080 - containerPort: 8080
imagePullSecrets: imagePullSecrets:

View file

@ -4,11 +4,13 @@ metadata:
name: pet-clinic name: pet-clinic
namespace: staging namespace: staging
labels: labels:
version: pc-e4876bb version: pc-baa4676
spec: spec:
type: LoadBalancer
selector: selector:
app: auth-service app: pet-clinic
version: pc-e4876bb version: pc-baa4676
ports: ports:
- port: 80 - port: 80
protocol: TCP
targetPort: 8080 targetPort: 8080