mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-12-04 10:34:42 +02:00
Привязана метка докер-агента к параметру edtVersion
This commit is contained in:
parent
a996536981
commit
f07eb03d7a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user