mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-07 13:42:23 +02:00
provide developent instance for transportRequest release RFC
This commit is contained in:
parent
54018be2f0
commit
3a982a8f04
@ -368,11 +368,14 @@ public class ChangeManagement implements Serializable {
|
||||
List dockerOptions,
|
||||
String transportRequestId,
|
||||
String endpoint,
|
||||
String developmentInstance,
|
||||
String developmentClient,
|
||||
String credentialsId) {
|
||||
|
||||
def cmd = "cts releaseTransport:${transportRequestId}"
|
||||
def args = ["--env ABAP_DEVELOPMENT_CLIENT=${developmentClient}"]
|
||||
def args = [
|
||||
"--env ABAP_DEVELOPMENT_INSTANCE=${developmentInstance}",
|
||||
"--env ABAP_DEVELOPMENT_CLIENT=${developmentClient}"]
|
||||
|
||||
int rc = executeWithCredentials(
|
||||
BackendType.RFC,
|
||||
|
@ -390,6 +390,7 @@ public void testGetCommandLineWithCMClientOpts() {
|
||||
[],
|
||||
'002',
|
||||
'https://example.org',
|
||||
'002',
|
||||
'001',
|
||||
'me')
|
||||
|
||||
@ -402,6 +403,7 @@ public void testGetCommandLineWithCMClientOpts() {
|
||||
assertThat(stringDockerOptions, hasItem('--env ABAP_DEVELOPMENT_USER=user'))
|
||||
assertThat(stringDockerOptions, hasItem('--env ABAP_DEVELOPMENT_PASSWORD=password'))
|
||||
assertThat(stringDockerOptions, hasItem('--env ABAP_DEVELOPMENT_CLIENT=001'))
|
||||
assertThat(stringDockerOptions, hasItem('--env ABAP_DEVELOPMENT_INSTANCE=002'))
|
||||
assertThat(script.shell, hasItem('cts releaseTransport:002'))
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,7 @@ void call(parameters = [:]) {
|
||||
.withMandatoryProperty('changeManagement/git/to')
|
||||
.withMandatoryProperty('changeManagement/git/from')
|
||||
.withMandatoryProperty('changeManagement/git/format')
|
||||
.withMandatoryProperty('changeManagement/rfc/developmetInstance', null, { backendType == BackendType.RFC})
|
||||
.withMandatoryProperty('changeManagement/rfc/developmentClient', null, { backendType == BackendType.RFC})
|
||||
|
||||
configuration = configHelper.use()
|
||||
@ -120,6 +121,7 @@ void call(parameters = [:]) {
|
||||
configuration.changeManagement.rfc.dockerOptions,
|
||||
configuration.transportRequestId,
|
||||
configuration.changeManagement.endpoint,
|
||||
configuration.changeManagement.rfc.developmentInstance,
|
||||
configuration.changeManagement.rfc.developmentClient,
|
||||
configuration.changeManagement.credentialsId)
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user