Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelespazzoli committed Jun 12, 2018
1 parent 435f409 commit c526d9f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions cucumber-selenium-grid/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ openshift.withCluster() {
env.STAGE1 = "${projectBase}-dev"
env.STAGE2 = "${projectBase}-stage"
env.STAGE3 = "${projectBase}-prod"
def label = "nodejs-slave-${UUID.randomUUID().toString()}"
}

pipeline {
Expand All @@ -17,8 +18,19 @@ pipeline {
// After Pipeline completes the Pod is killed so every run will have clean
// workspace
agent {
label 'nodejs'
}
kubernetes {
label label
cloud 'openshift'
serviceAccount 'jenkins'
containerTemplate {
name 'jnlp'
image "docker-registry.default.svc:5000/${NAMESPACE}/jenkins-slave-nodejs8"
alwaysPullImage true
workingDir '/tmp'
args '${computer.jnlpmac} ${computer.name}'
ttyEnabled false
}
}

// Pipeline Stages start here
// Requeres at least one stage
Expand Down

0 comments on commit c526d9f

Please sign in to comment.