1
0

fix pipeline

This commit is contained in:
Dima
2024-03-19 14:59:03 +03:00
parent 9f0a9221dd
commit 6f422b1e12

View File

@@ -196,32 +196,33 @@ void call() {
} }
stage('BDD сценарии') { stage('BDD сценарии') {
agent {
stage('Загрузка расширений в конфигурацию'){ label agent1C
when { }
beforeAgent true when {
expression { config.needLoadExtensions('bdd') } beforeAgent true
} expression { config.stageFlags.bdd }
steps { }
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) { steps {
loadExtensions config 'bdd' stage('Загрузка расширений в конфигурацию') {
when {
beforeAgent true
expression { config.needLoadExtensions('bdd') }
}
steps {
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) {
loadExtensions config 'bdd'
}
} }
} }
}
stage('Выполнение BDD сценариев') { stage('Выполнение BDD сценариев') {
agent { steps {
label agent1C timeout(time: config.timeoutOptions.bdd, unit: TimeUnit.MINUTES) {
} unzipInfobase()
when {
beforeAgent true
expression { config.stageFlags.bdd }
}
steps {
timeout(time: config.timeoutOptions.bdd, unit: TimeUnit.MINUTES) {
unzipInfobase()
bdd config bdd config
}
} }
} }
} }
@@ -243,65 +244,66 @@ void call() {
} }
stage('Дымовые тесты') { stage('Дымовые тесты') {
agent {
stage('Загрузка расширений в конфигурацию') { label agent1C
when { }
beforeAgent true when {
expression { config.needLoadExtensions('smoke') } beforeAgent true
} expression { config.stageFlags.smoke }
steps { }
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) { steps {
loadExtensions config 'smoke' stage('Загрузка расширений в конфигурацию') {
when {
beforeAgent true
expression { config.needLoadExtensions('smoke') }
}
steps {
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) {
loadExtensions config 'smoke'
}
} }
} }
}
stage('Выполнение дымовых тестов') { stage('Выполнение дымовых тестов') {
agent { steps {
label agent1C timeout(time: config.timeoutOptions.smoke, unit: TimeUnit.MINUTES) {
} unzipInfobase()
when {
beforeAgent true
expression { config.stageFlags.smoke }
}
steps {
timeout(time: config.timeoutOptions.smoke, unit: TimeUnit.MINUTES) {
unzipInfobase()
smoke config smoke config
}
} }
} }
} }
} }
stage('YAXUnit тесты') { stage('YAXUnit тесты') {
agent {
stage('Загрузка расширений в конфигурацию') { label agent1C
when { }
beforeAgent true when {
expression { config.needLoadExtensions('yaxunit') } beforeAgent true
} expression { config.stageFlags.yaxunit }
steps { }
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) { steps {
loadExtensions config 'yaxunit' stage('Загрузка расширений в конфигурацию') {
when {
beforeAgent true
expression { config.needLoadExtensions('yaxunit') }
}
steps {
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) {
loadExtensions config 'yaxunit'
}
} }
} }
}
stage('Выполнение YAXUnit тестов') { stage('Выполнение YAXUnit тестов') {
steps {
timeout(time: config.timeoutOptions.yaxunit, unit: TimeUnit.MINUTES) {
unzipInfobase()
agent { yaxunit config
label agent1C }
}
when {
beforeAgent true
expression { config.stageFlags.yaxunit }
}
steps {
timeout(time: config.timeoutOptions.yaxunit, unit: TimeUnit.MINUTES) {
unzipInfobase()
yaxunit config
} }
} }
} }