mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Merge remote-tracking branch 'github/master' into work
This commit is contained in:
commit
138a41f02a
@ -43,7 +43,7 @@ class ArtifactSetVersionTest extends BasePiperTest {
|
|||||||
.around(thrown)
|
.around(thrown)
|
||||||
.around(jlr)
|
.around(jlr)
|
||||||
.around(jscr)
|
.around(jscr)
|
||||||
.around(new JenkinsReadMavenPomRule(this, 'test/resources/MavenArtifactVersioning'))
|
.around(new JenkinsReadMavenPomRule(this, 'test/resources/versioning/MavenArtifactVersioning'))
|
||||||
.around(jwfr)
|
.around(jwfr)
|
||||||
.around(jder)
|
.around(jder)
|
||||||
.around(jsr)
|
.around(jsr)
|
||||||
|
@ -20,7 +20,7 @@ class DockerArtifactVersioningTest extends BasePiperTest{
|
|||||||
|
|
||||||
String passedDir
|
String passedDir
|
||||||
|
|
||||||
JenkinsReadFileRule jrfr = new JenkinsReadFileRule(this, 'test/resources/DockerArtifactVersioning')
|
JenkinsReadFileRule jrfr = new JenkinsReadFileRule(this, 'test/resources/versioning/DockerArtifactVersioning')
|
||||||
JenkinsWriteFileRule jwfr = new JenkinsWriteFileRule(this)
|
JenkinsWriteFileRule jwfr = new JenkinsWriteFileRule(this)
|
||||||
JenkinsLoggingRule jlr = new JenkinsLoggingRule(this)
|
JenkinsLoggingRule jlr = new JenkinsLoggingRule(this)
|
||||||
ExpectedException thrown = ExpectedException.none()
|
ExpectedException thrown = ExpectedException.none()
|
||||||
|
@ -27,7 +27,7 @@ class MavenArtifactVersioningTest extends BasePiperTest{
|
|||||||
.getCommonRules(this)
|
.getCommonRules(this)
|
||||||
.around(new JenkinsReadYamlRule(this))
|
.around(new JenkinsReadYamlRule(this))
|
||||||
.around(jscr)
|
.around(jscr)
|
||||||
.around(new JenkinsReadMavenPomRule(this, 'test/resources/MavenArtifactVersioning'))
|
.around(new JenkinsReadMavenPomRule(this, 'test/resources/versioning/MavenArtifactVersioning'))
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
void init() {
|
void init() {
|
||||||
|
@ -24,8 +24,8 @@ void call(Map parameters = [:], body) {
|
|||||||
Map config = ConfigurationHelper
|
Map config = ConfigurationHelper
|
||||||
.loadStepDefaults(this)
|
.loadStepDefaults(this)
|
||||||
.mixinGeneralConfig(script.commonPipelineEnvironment, GENERAL_CONFIG_KEYS)
|
.mixinGeneralConfig(script.commonPipelineEnvironment, GENERAL_CONFIG_KEYS)
|
||||||
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS)
|
|
||||||
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
||||||
|
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS)
|
||||||
.mixin(parameters, PARAMETER_KEYS)
|
.mixin(parameters, PARAMETER_KEYS)
|
||||||
.use()
|
.use()
|
||||||
if (isKubernetes() && config.dockerImage) {
|
if (isKubernetes() && config.dockerImage) {
|
||||||
|
@ -25,8 +25,8 @@ void call(Map parameters = [:], body) {
|
|||||||
ConfigurationHelper configHelper = ConfigurationHelper
|
ConfigurationHelper configHelper = ConfigurationHelper
|
||||||
.loadStepDefaults(this)
|
.loadStepDefaults(this)
|
||||||
.mixinGeneralConfig(script.commonPipelineEnvironment, GENERAL_CONFIG_KEYS)
|
.mixinGeneralConfig(script.commonPipelineEnvironment, GENERAL_CONFIG_KEYS)
|
||||||
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName ?: env.STAGE_NAME, STEP_CONFIG_KEYS)
|
|
||||||
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
||||||
|
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName ?: env.STAGE_NAME, STEP_CONFIG_KEYS)
|
||||||
.mixin(parameters, PARAMETER_KEYS)
|
.mixin(parameters, PARAMETER_KEYS)
|
||||||
.addIfEmpty('uniqueId', UUID.randomUUID().toString())
|
.addIfEmpty('uniqueId', UUID.randomUUID().toString())
|
||||||
Map config = [:]
|
Map config = [:]
|
||||||
|
@ -32,6 +32,7 @@ def call(Map parameters = [:]) {
|
|||||||
.loadStepDefaults(this)
|
.loadStepDefaults(this)
|
||||||
.mixinGeneralConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
.mixinGeneralConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
||||||
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
||||||
|
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName ?: env.STAGE_NAME, STEP_CONFIG_KEYS)
|
||||||
.mixin(parameters, PARAMETER_KEYS)
|
.mixin(parameters, PARAMETER_KEYS)
|
||||||
.use()
|
.use()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user