1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Provide development instance for create transport request RFC

This commit is contained in:
Marcus Holl 2019-02-07 11:12:17 +01:00
parent d8d2d8b1fd
commit e9c1834f9d
2 changed files with 8 additions and 2 deletions

View File

@ -105,14 +105,17 @@ public class ChangeManagement implements Serializable {
String dockerImage,
List dockerOptions,
String endpoint,
String client,
String developmentClient,
String developmentInstance,
String credentialsId,
String description) {
def command = 'cts createTransportRequest'
List args = [
"--env TRANSPORT_DESCRIPTION=${description}",
"--env ABAP_DEVELOPMENT_CLIENT=${client}"]
"--env ABAP_DEVELOPMENT_INSTANCE=${developmentInstance}",
"--env ABAP_DEVELOPMENT_CLIENT=${developmentClient}",
]
try {

View File

@ -181,6 +181,7 @@ public void testGetCommandLineWithCMClientOpts() {
[], // docker options
'https://example.org/rfc', // endpoint
'01', // client
'001', // instance
'me', // credentialsId
'Lorem ipsum' // description
)
@ -189,6 +190,7 @@ public void testGetCommandLineWithCMClientOpts() {
assert dockerExecuteRule.dockerParams.dockerOptions == [
'--env TRANSPORT_DESCRIPTION=Lorem ipsum',
'--env ABAP_DEVELOPMENT_INSTANCE=001',
'--env ABAP_DEVELOPMENT_CLIENT=01',
'--env ABAP_DEVELOPMENT_SERVER=https://example.org/rfc',
'--env ABAP_DEVELOPMENT_USER=user',
@ -213,6 +215,7 @@ public void testGetCommandLineWithCMClientOpts() {
[], // docker options
'https://example.org/rfc', // endpoint
'01', // client
'001', // instance
'me', // credentialsId
'Lorem ipsum' // description
)