1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-05 15:15:44 +02:00

[fix] Excpetion message contains config key instead of value.

This commit is contained in:
Marcus Holl 2018-07-17 10:08:47 +02:00
parent 1c4595769d
commit 4b2ee0d4ad
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class CheckChangeInDevelopmentTest extends BasePiperTest {
thrown.expect(IllegalArgumentException)
thrown.expectMessage("No changeDocumentId provided. Neither via parameter 'changeDocumentId' " +
"nor via label 'configuration.gitChangeIdLabel' in commit range " +
"nor via label 'ChangeDocument\\s?:' in commit range " +
"[from: origin/master, to: HEAD].")
ChangeManagement cm = getChangeManagementUtils(false, null)
@ -150,7 +150,7 @@ class CheckChangeInDevelopmentTest extends BasePiperTest {
thrown.expect(IllegalArgumentException)
thrown.expectMessage("No changeDocumentId provided. Neither via parameter 'changeDocumentId' " +
"nor via label 'configuration.gitChangeIdLabel' in commit range " +
"nor via label 'ChangeDocument\\s?:' in commit range " +
"[from: origin/master, to: HEAD].")
ChangeManagement cm = getChangeManagementUtils(false, '')

View File

@ -73,7 +73,7 @@ def call(parameters = [:]) {
.withMandatoryProperty('endpoint')
.withMandatoryProperty('changeDocumentId',
"No changeDocumentId provided. Neither via parameter 'changeDocumentId' " +
"nor via label 'configuration.gitChangeIdLabel' in commit range " +
"nor via label '${configuration.gitChangeDocumentLabel}' in commit range " +
"[from: ${configuration.gitFrom}, to: ${configuration.gitTo}].")
.use()