1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

Parameter applicationURL instead of file path

This commit is contained in:
Marcus Holl 2019-01-30 10:16:38 +01:00
parent 7f6b8a6850
commit a70fc10ae0
2 changed files with 5 additions and 3 deletions

View File

@ -197,7 +197,7 @@ public class TransportRequestUploadFileTest extends BasePiperTest {
helper.registerAllowedMethod('sh', [Map], {m -> return (m.script.startsWith('cts') ? 0 : 1)})
stepRule.step.transportRequestUploadFile(script: nullScript,
filePath: 'xyz.jar',
applicationUrl: 'http://example.org/blobstore/xyz.zip',
transportRequestId: '123456',
changeManagement: [type: 'RFC'],
developmentInstance:'001',

View File

@ -31,6 +31,7 @@ import static com.sap.piper.cm.StepHelpers.getBackendTypeAndLogInfoIfCMIntegrati
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS.plus([
'changeDocumentId',
'filePath',
'applicationUrl',
'transportRequestId'])
void call(parameters = [:]) {
@ -64,7 +65,8 @@ void call(parameters = [:]) {
.withMandatoryProperty('changeManagement/git/from')
.withMandatoryProperty('changeManagement/git/to')
.withMandatoryProperty('changeManagement/git/format')
.withMandatoryProperty('filePath')
.withMandatoryProperty('filePath', null, { backendType in [BackendType.SOLMAN, BackendType.CTS] })
.withMandatoryProperty('applicationUrl', null, { backendType == BackendType.RFC })
.withMandatoryProperty('developmentInstance', null, { backendType == BackendType.RFC })
.withMandatoryProperty('developmentClient', null, { backendType == BackendType.RFC })
.withMandatoryProperty('applicationDescription', null, { backendType == BackendType.RFC })
@ -137,7 +139,7 @@ void call(parameters = [:]) {
configuration.changeManagement.rfc.dockerOptions ?: [],
configuration.transportRequestId,
configuration.applicationId,
configuration.filePath,
configuration.applicationUrl,
configuration.changeManagement.endpoint,
configuration.changeManagement.credentialsId,
configuration.developmentInstance,