mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[eclipse/xtext#1595] Escape branch name for k8s label
The k8s agent label becomes invalid when the branch name contains '/'. ERROR: Labels must follow required specs - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set This change escapes the slash character by underscore. Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
This commit is contained in:
parent
9d419220eb
commit
582ea14f9d
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -1,7 +1,7 @@
|
|||
pipeline {
|
||||
agent {
|
||||
kubernetes {
|
||||
label 'xtext-core-' + env.BRANCH_NAME + '-' + env.BUILD_NUMBER
|
||||
label 'xtext-core-' + (env.BRANCH_NAME.replace('/','_')) + '-' + env.BUILD_NUMBER
|
||||
defaultContainer 'xtext-buildenv'
|
||||
yaml '''
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Reference in a new issue