github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/documentation/docs/steps/gctsCreateRepository.md (about)

     1  # ${docGenStepName}
     2  
     3  ## ${docGenDescription}
     4  
     5  ## Prerequisites
     6  
     7  This step creates a local Git repository on an ABAP server.
     8  More information about the [Git-enabled Change and Transport System (gCTS)](https://help.sap.com/docs/ABAP_PLATFORM_NEW/4a368c163b08418890a406d413933ba7/f319b168e87e42149e25e13c08d002b9.html).
     9  
    10  ## ${docGenParameters}
    11  
    12  ## ${docGenConfiguration}
    13  
    14  ## ${docJenkinsPluginDependencies}
    15  
    16  ## Example
    17  
    18  Example configuration for the use in a `Jenkinsfile`.
    19  
    20  ```groovy
    21  gctsCreateRepository(
    22    script: this,
    23    host: 'https://abap.server.com:port',
    24    client: '000',
    25    abapCredentialsId: 'ABAPUserPasswordCredentialsId',
    26    repository: 'myrepo',
    27    remoteRepositoryURL: 'https://github.com/user/myrepo',
    28    role: 'SOURCE',
    29    vSID: 'ABC'
    30    )
    31  ```
    32  
    33  Example for the use in a YAML configuration file (such as `.pipeline/config.yaml`).
    34  
    35  ```yaml
    36  steps:
    37    <...>
    38    gctsCreateRepository:
    39      host: 'https://abap.server.com:port'
    40      client: '000'
    41      abapCredentialsId: 'ABAPUserPasswordCredentialsId'
    42      repository: 'myrepo'
    43      remoteRepositoryURL: 'https://github.com/user/myrepo'
    44      role: 'SOURCE'
    45      vSID: 'ABC'
    46  ```