2020-04-24 15:31:41 +02:00
# ${docGenStepName}
## ${docGenDescription}
## Prerequisites
2023-03-29 12:31:27 +02:00
This step creates a local Git repository on an ABAP server.
More information about the [Git-enabled Change and Transport System (gCTS) ](https://help.sap.com/docs/ABAP_PLATFORM_NEW/4a368c163b08418890a406d413933ba7/f319b168e87e42149e25e13c08d002b9.html ).
2020-04-24 15:31:41 +02:00
## ${docGenParameters}
## ${docGenConfiguration}
## ${docJenkinsPluginDependencies}
## Example
2020-04-29 16:21:55 +02:00
Example configuration for the use in a `Jenkinsfile` .
2020-04-24 15:31:41 +02:00
```groovy
gctsCreateRepository(
script: this,
2020-07-22 10:56:20 +02:00
host: 'https://abap.server.com:port',
client: '000',
2020-04-29 16:21:55 +02:00
abapCredentialsId: 'ABAPUserPasswordCredentialsId',
2020-07-22 10:56:20 +02:00
repository: 'myrepo',
remoteRepositoryURL: 'https://github.com/user/myrepo',
role: 'SOURCE',
vSID: 'ABC'
2020-04-24 15:31:41 +02:00
)
```
2020-04-29 16:21:55 +02:00
Example for the use in a YAML configuration file (such as `.pipeline/config.yaml` ).
2020-04-24 15:31:41 +02:00
```yaml
steps:
< ... >
gctsCreateRepository:
2020-07-22 10:56:20 +02:00
host: 'https://abap.server.com:port'
client: '000'
abapCredentialsId: 'ABAPUserPasswordCredentialsId'
repository: 'myrepo'
remoteRepositoryURL: 'https://github.com/user/myrepo'
role: 'SOURCE'
vSID: 'ABC'
2020-04-24 15:31:41 +02:00
```