diff --git a/cmd/gctsCreateRepository_generated.go b/cmd/gctsCreateRepository_generated.go index 7d2474d90..e6bfeaf47 100644 --- a/cmd/gctsCreateRepository_generated.go +++ b/cmd/gctsCreateRepository_generated.go @@ -50,6 +50,8 @@ func GctsCreateRepositoryCommand() *cobra.Command { if err != nil { return err } + log.RegisterSecret(stepConfig.Username) + log.RegisterSecret(stepConfig.Password) return nil }, Run: func(cmd *cobra.Command, args []string) { diff --git a/documentation/docs/steps/gctsCreateRepository.md b/documentation/docs/steps/gctsCreateRepository.md index c8c2122e5..faa4f4396 100644 --- a/documentation/docs/steps/gctsCreateRepository.md +++ b/documentation/docs/steps/gctsCreateRepository.md @@ -5,7 +5,7 @@ ## Prerequisites With this step you can create a local git-enabled CTS (gCTS) repository on an ABAP server. -Learn more about gCTS [here](https://help.sap.com/viewer/4a368c163b08418890a406d413933ba7/201909.001/en-US/f319b168e87e42149e25e13c08d002b9.html). +Learn more about the SAP git-enabled Central Transport Sytem (gCTS) [here](https://help.sap.com/viewer/4a368c163b08418890a406d413933ba7/201909.001/en-US/f319b168e87e42149e25e13c08d002b9.html). With gCTS, ABAP developments on ABAP servers can be maintained in Git repositories. ## ${docGenParameters} @@ -15,14 +15,14 @@ Learn more about gCTS [here](https://help.sap.com/viewer/4a368c163b08418890a406d ## Example -Example configuration for the use in a Jenkinsfile. +Example configuration for the use in a `Jenkinsfile`. ```groovy gctsCreateRepository( script: this, - host: "abap.server.com:port", + host: "https://abap.server.com:port", client: "000", - credentialsId: 'ABAPUserPasswordCredentialsId', + abapCredentialsId: 'ABAPUserPasswordCredentialsId', repository: "myrepo", remoteRepositoryURL: "https://github.com/user/myrepo", role: "SOURCE", @@ -30,13 +30,13 @@ gctsCreateRepository( ) ``` -Example configuration for the use in a yaml config file (such as `.pipeline/config.yaml`). +Example for the use in a YAML configuration file (such as `.pipeline/config.yaml`). ```yaml steps: <...> gctsCreateRepository: - host: "abap.server.com:port" + host: "https://abap.server.com:port" client: "000" username: "ABAPUsername" password: "ABAPPassword" diff --git a/resources/metadata/gctsCreateRepository.yaml b/resources/metadata/gctsCreateRepository.yaml index 022f2057f..11cecf274 100644 --- a/resources/metadata/gctsCreateRepository.yaml +++ b/resources/metadata/gctsCreateRepository.yaml @@ -19,6 +19,7 @@ spec: - STAGES - STEPS mandatory: true + secret: true - name: password type: string description: Password to authenticate to the ABAP system @@ -27,6 +28,7 @@ spec: - STAGES - STEPS mandatory: true + secret: true - name: repository type: string description: Specifies the name (ID) of the local repository on the ABAP system @@ -65,6 +67,9 @@ spec: - PARAMETERS - STAGES - STEPS + possibleValues: + - SOURCE + - TARGET - name: vSID type: string description: Virtual SID of the local repository. The vSID corresponds to the transport route that delivers content to the remote Git repository