1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

Перенос инициализации агента во вложенный stage

This commit is contained in:
Nikita Fedkin
2022-05-20 22:42:04 +03:00
parent 39910ba1f0
commit a247bb9c5c

View File

@@ -49,9 +49,6 @@ void call() {
stage('Подготовка') {
parallel {
stage('Подготовка 1C базы') {
agent {
label agent1C
}
when {
beforeAgent true
expression { config.stageFlags.needInfoBase() }
@@ -73,6 +70,12 @@ void call() {
}
}
stage('Подготовка 1С базы') {
agent {
label agent1C
}
stages {
stage('Создание ИБ') {
steps {
timeout(time: config.timeoutOptions.createInfoBase, unit: TimeUnit.MINUTES) {
@@ -112,7 +115,8 @@ void call() {
zipInfobase()
}
}
}
}
}
}