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

Попытка unstash аллюра от инита и бдд только если эти шаги были включены

This commit is contained in:
Nikita Fedkin 2022-06-03 18:50:25 +03:00
parent 32dfdfad2b
commit 911be3c7ba
No known key found for this signature in database
GPG Key ID: E7AE91471C6FFE04

View File

@ -27,8 +27,12 @@ class PublishAllure implements Serializable {
steps = ContextRegistry.getContext().getStepExecutor()
safeUnstash('init-allure')
safeUnstash('bdd-allure')
if (config.stageFlags.initSteps) {
safeUnstash('init-allure')
}
if (config.stageFlags.bdd) {
safeUnstash('bdd-allure')
}
if (config.stageFlags.smoke && config.smokeTestOptions.publishToAllureReport) {
safeUnstash(SmokeTest.SMOKE_ALLURE_STASH)
}