mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Remove return value from transportRequestCreate
it is contained in the common pipeline environment.
This commit is contained in:
parent
b8c0c8e6b3
commit
420746463e
@ -216,7 +216,6 @@ public class CommonStepsTest extends BasePiperTest{
|
||||
def stepsWithCallMethodsOtherThanVoid = []
|
||||
|
||||
def whitelist = [
|
||||
'transportRequestCreate',
|
||||
'durationMeasure',
|
||||
]
|
||||
|
||||
|
@ -127,9 +127,9 @@ public class TransportRequestCreateTest extends BasePiperTest {
|
||||
}
|
||||
}
|
||||
|
||||
def transportId = jsr.step.call(script: nullScript, changeDocumentId: '001', developmentSystemId: '001', cmUtils: cm)
|
||||
jsr.step.call(script: nullScript, changeDocumentId: '001', developmentSystemId: '001', cmUtils: cm)
|
||||
|
||||
assert transportId == '001'
|
||||
assert nullScript.commonPipelineEnvironment.getTransportRequestId() == '001'
|
||||
assert result == [changeId: '001',
|
||||
developmentSystemId: '001',
|
||||
cmEndpoint: 'https://example.org/cm',
|
||||
@ -166,14 +166,14 @@ public class TransportRequestCreateTest extends BasePiperTest {
|
||||
}
|
||||
}
|
||||
|
||||
def transportId = jsr.step.call(script: nullScript,
|
||||
transportType: 'W',
|
||||
targetSystem: 'XYZ',
|
||||
description: 'desc',
|
||||
changeManagement: [type: 'CTS'],
|
||||
cmUtils: cm)
|
||||
jsr.step.call(script: nullScript,
|
||||
transportType: 'W',
|
||||
targetSystem: 'XYZ',
|
||||
description: 'desc',
|
||||
changeManagement: [type: 'CTS'],
|
||||
cmUtils: cm)
|
||||
|
||||
assert transportId == '001'
|
||||
assert nullScript.commonPipelineEnvironment.getTransportRequestId() == '001'
|
||||
assert result == [transportType: 'W',
|
||||
targetSystemId: 'XYZ',
|
||||
description: 'desc',
|
||||
|
@ -27,7 +27,7 @@ import hudson.AbortException
|
||||
|
||||
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS.plus(['changeDocumentId'])
|
||||
|
||||
def call(parameters = [:]) {
|
||||
void call(parameters = [:]) {
|
||||
|
||||
def transportRequestId
|
||||
|
||||
@ -112,5 +112,4 @@ def call(parameters = [:]) {
|
||||
echo "[INFO] Transport Request '$transportRequestId' has been successfully created."
|
||||
script.commonPipelineEnvironment.setTransportRequestId(transportRequestId)
|
||||
}
|
||||
transportRequestId
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user