1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-04 10:34:42 +02:00

Привязана метка докер-агента к параметру edtVersion

This commit is contained in:
ivanmolodec 2022-05-13 23:37:42 +03:00
parent a996536981
commit f07eb03d7a

View File

@ -11,6 +11,9 @@ JobConfiguration config
@Field
String agent1C
@Field
String agentEdt
void call() {
//noinspection GroovyAssignabilityCheck
@ -36,6 +39,10 @@ void call() {
script {
config = jobConfiguration() as JobConfiguration
agent1C = config.v8version
agentEdt = "edt"
if (config.edtVersion != '') {
agentEdt += "@" + config.edtVersion
}
}
}
}
@ -54,7 +61,7 @@ void call() {
stages {
stage('Трансформация из формата EDT') {
agent {
label 'edt'
label agentEdt
}
when {
beforeAgent true
@ -114,7 +121,7 @@ void call() {
stage('Трансформация в формат EDT') {
agent {
label 'edt'
label agentEdt
}
when {
beforeAgent true
@ -139,7 +146,7 @@ void call() {
stages {
stage('Валидация EDT') {
agent {
label 'edt'
label agentEdt
}
steps {
timeout(time: config.timeoutOptions.edtValidate, unit: TimeUnit.MINUTES) {