Skip to content

Commit

Permalink
label and container name
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Geesaman committed Aug 9, 2019
1 parent 988ecc9 commit b8e9ce2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand All @@ -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()])
Expand Down

0 comments on commit b8e9ce2

Please sign in to comment.