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 stepsWithCallMethodsOtherThanVoid = []
|
||||||
|
|
||||||
def whitelist = [
|
def whitelist = [
|
||||||
'transportRequestCreate',
|
|
||||||
'durationMeasure',
|
'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',
|
assert result == [changeId: '001',
|
||||||
developmentSystemId: '001',
|
developmentSystemId: '001',
|
||||||
cmEndpoint: 'https://example.org/cm',
|
cmEndpoint: 'https://example.org/cm',
|
||||||
@ -166,14 +166,14 @@ public class TransportRequestCreateTest extends BasePiperTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def transportId = jsr.step.call(script: nullScript,
|
jsr.step.call(script: nullScript,
|
||||||
transportType: 'W',
|
transportType: 'W',
|
||||||
targetSystem: 'XYZ',
|
targetSystem: 'XYZ',
|
||||||
description: 'desc',
|
description: 'desc',
|
||||||
changeManagement: [type: 'CTS'],
|
changeManagement: [type: 'CTS'],
|
||||||
cmUtils: cm)
|
cmUtils: cm)
|
||||||
|
|
||||||
assert transportId == '001'
|
assert nullScript.commonPipelineEnvironment.getTransportRequestId() == '001'
|
||||||
assert result == [transportType: 'W',
|
assert result == [transportType: 'W',
|
||||||
targetSystemId: 'XYZ',
|
targetSystemId: 'XYZ',
|
||||||
description: 'desc',
|
description: 'desc',
|
||||||
|
@ -27,7 +27,7 @@ import hudson.AbortException
|
|||||||
|
|
||||||
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS.plus(['changeDocumentId'])
|
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS.plus(['changeDocumentId'])
|
||||||
|
|
||||||
def call(parameters = [:]) {
|
void call(parameters = [:]) {
|
||||||
|
|
||||||
def transportRequestId
|
def transportRequestId
|
||||||
|
|
||||||
@ -112,5 +112,4 @@ def call(parameters = [:]) {
|
|||||||
echo "[INFO] Transport Request '$transportRequestId' has been successfully created."
|
echo "[INFO] Transport Request '$transportRequestId' has been successfully created."
|
||||||
script.commonPipelineEnvironment.setTransportRequestId(transportRequestId)
|
script.commonPipelineEnvironment.setTransportRequestId(transportRequestId)
|
||||||
}
|
}
|
||||||
transportRequestId
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user