mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-19 19:44:27 +02:00
1.8 KiB
1.8 KiB
${docGenStepName}
${docGenDescription}
Prerequisites
If you provide a commit ID
, the step deploys the content of the specified commit to the ABAP system. If you provide a branch
, the step deploys the content of the specified branch. If you set the rollback
parameter to true, the step returns to a working state of the repository, if the deployment of the specified commit or branch fails.
More information about the Git-enabled Change and Transport System (gCTS).
${docGenParameters}
${docGenConfiguration}
${docJenkinsPluginDependencies}
Example
Example configuration for the use in a Jenkinsfile
.
gctsDeploy(
script: this,
host: 'https://abap.server.com:port',
client: '000',
abapCredentialsId: 'ABAPUserPasswordCredentialsId',
repository: 'myrepo',
remoteRepositoryURL: "https://remote.repository.url.com",
role: 'SOURCE',
vSID: 'ABC',
branch: 'feature1',
commit: '95952ec',
scope: 'LASTACTION',
rollback: true,
configuration: [VCS_AUTOMATIC_PULL: 'FALSE',VCS_AUTOMATIC_PUSH: 'FALSE',CLIENT_VCS_LOGLVL: 'debug'],
queryparameters: [saml2: 'disabled']
)
Example for the use in a YAML configuration file (such as .pipeline/config.yaml
).
steps:
<...>
gctsDeploy:
host: 'https://abap.server.com:port'
client: '000'
abapCredentialsId: 'ABAPUserPasswordCredentialsId'
repository: 'myrepo'
remoteRepositoryURL: "https://remote.repository.url.com"
role: 'SOURCE'
vSID: 'ABC'
branch: 'feature2'
commit: '0c9d330'
scope: 'CRNTCOMMIT'
rollback: false
configuration:
VCS_AUTOMATIC_PULL: "FALSE"
VCS_AUTOMATIC_PUSH: "FALSE"
CLIENT_VCS_LOGLVL: "debug"
queryparameters:
saml2: "disabled"