diff --git a/Jenkinsfile b/Jenkinsfile index cc4c65269..409f40ab5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + label 'master' + } stages { stage('init') { diff --git a/infra/Jenkinsfile b/infra/Jenkinsfile index 6f05d53c1..600aea9ca 100644 --- a/infra/Jenkinsfile +++ b/infra/Jenkinsfile @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + label 'master' + } environment { ACR_SECRET = credentials('acr-auth') diff --git a/infra/kube/Jenkinsfile b/infra/kube/Jenkinsfile index e30d55066..146bf9a46 100644 --- a/infra/kube/Jenkinsfile +++ b/infra/kube/Jenkinsfile @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + label 'master' + } stages { stage('init') { diff --git a/infra/kube/workloads/staging/deployment.yaml b/infra/kube/workloads/staging/deployment.yaml index e4a23c289..596a4425f 100644 --- a/infra/kube/workloads/staging/deployment.yaml +++ b/infra/kube/workloads/staging/deployment.yaml @@ -12,12 +12,12 @@ spec: metadata: labels: app: pet-clinic - version: pc-b5f68c4 + version: pc-5fb7fbc spec: containers: - name: pet-clinic - image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-b5f68c4" + image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-5fb7fbc" ports: - containerPort: 8080 imagePullSecrets: diff --git a/infra/kube/workloads/staging/service.yaml b/infra/kube/workloads/staging/service.yaml index e6b277dcf..a1dbbe55d 100644 --- a/infra/kube/workloads/staging/service.yaml +++ b/infra/kube/workloads/staging/service.yaml @@ -4,12 +4,12 @@ metadata: name: pet-clinic namespace: staging labels: - version: pc-b5f68c4 + version: pc-5fb7fbc spec: type: LoadBalancer selector: app: pet-clinic - version: pc-b5f68c4 + version: pc-5fb7fbc ports: - port: 80 protocol: TCP