feat(container): add image build validation steps

This commit is contained in:
2022-10-10 11:56:55 +02:00
parent e670fb8bf6
commit 8e1b257144
4 changed files with 220 additions and 56 deletions

13
vars/utils.groovy Normal file
View File

@ -0,0 +1,13 @@
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
void when(Boolean condition, body) {
Map config = [:]
body.resolveStrategy = Closure.OWNER_FIRST
body.delegate = config
if (condition) {
body()
} else {
Utils.markStageSkippedForConditional(STAGE_NAME)
}
}