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

     1  # ${docGenStepName}
     2  
     3  ## ${docGenDescription}
     4  
     5  ## Prerequisites
     6  
     7  This step performs a rollback of commit(s) in a local ABAP system repository. If a `commit` parameter is specified, it will be used as the target commit for the rollback. If no `commit` parameter is specified and the remote repository domain is 'github.com', the last commit with the status 'success' will be used for the rollback. Otherwise, `gctsRollback` will roll back to the previously active commit in the local repository.
     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  gctsRollback(
    22    script: this,
    23    host: "https://abap.server.com:port",
    24    client: "000",
    25    abapCredentialsId: 'ABAPUserPasswordCredentialsId',
    26    repository: "myrepo"
    27    )
    28  ```
    29  
    30  Example for the use in a YAML configuration file (such as `.pipeline/config.yaml`).
    31  
    32  ```yaml
    33  steps:
    34    <...>
    35    gctsRollback:
    36      host: "https://abap.server.com:port"
    37      client: "000"
    38      abapCredentialsId: 'ABAPUserPasswordCredentialsId'
    39      repository: "myrepo"
    40  ```