diff --git a/Jenkinsfile b/Jenkinsfile index cfdb0cb..ff3696b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,12 +22,11 @@ limitations under the License. // Reference: https://github.com/jenkinsci/kubernetes-plugin // set up pod label and GOOGLE_APPLICATION_CREDENTIALS (for Terraform) -def label = "k8s-infra" -def containerName = "k8s-node" +def containerName = "tracing" def GOOGLE_APPLICATION_CREDENTIALS = '/home/jenkins/dev/jenkins-deploy-dev-infra.json' def jenkins_container_version = env.JENKINS_CONTAINER_VERSION -podTemplate(label: label, +podTemplate( containers: [ containerTemplate(name: "${containerName}", image: "gcr.io/pso-helmsman-cicd/jenkins-k8s-node:${jenkins_container_version}", @@ -42,7 +41,7 @@ podTemplate(label: label, secretName: 'jenkins-deploy-dev-infra' )] ) { - node(label) { + node(POD_LABEL) { try { // Options covers all other job properties or wrapper functions that apply to entire Pipeline. properties([disableConcurrentBuilds()])