Skip to content

Commit

Permalink
Fixed pod label
Browse files Browse the repository at this point in the history
  • Loading branch information
enricovianello committed Jun 24, 2019
1 parent 25738d2 commit 939a1d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
def podLabel = 'storm-backend-server_' + JOB_BASE_NAME.replaceAll('%2F','').replaceAll("[^a-zA-Z0-9]+","") + '-' + BUILD_NUMBER

pipeline {

agent {
kubernetes {
label "storm-backend-server-${env.JOB_BASE_NAME}-${env.BUILD_NUMBER}"
label "${podLabel}"
cloud 'Kube mwdevel'
defaultContainer 'jnlp'
inheritFrom 'ci-template'
Expand Down

0 comments on commit 939a1d0

Please sign in to comment.