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:
parent
7f6b8a6850
commit
a70fc10ae0
@ -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',
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user