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:
parent
1c4595769d
commit
4b2ee0d4ad
@ -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, '')
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user