mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-16 05:16:08 +02:00
Fix gcts deploy field anonymize (#5129)
* adding anonymisation for object field * Further fixes to gcts deploy step * syntax changes
This commit is contained in:
parent
c991c5b16d
commit
033a429c49
@ -81,7 +81,7 @@ func gctsDeployRepository(config *gctsDeployOptions, telemetryData *telemetry.Cu
|
||||
repoMetadataInitState, getRepositoryErr := getRepository(config, httpClient)
|
||||
currentBranch := repoMetadataInitState.Result.Branch
|
||||
// If Repository does not exist in the system then Create and Clone Repository
|
||||
if getRepositoryErr != nil {
|
||||
if getRepositoryErr != nil || repoMetadataInitState.Result.Rid == "" {
|
||||
// If scope is set for a new repository then creation/cloning of the repository cannot be done
|
||||
if config.Scope != "" {
|
||||
log.Entry().Error("Error during deploy : deploy scope cannot be provided while deploying a new repo")
|
||||
@ -824,7 +824,7 @@ type getRepositoryResponseBody struct {
|
||||
Value string `json:"value"`
|
||||
Category string `json:"category"`
|
||||
} `json:"config"`
|
||||
Objects int64 `json:"objects"`
|
||||
Objects any `json:"objects"`
|
||||
CurrentCommit string `json:"currentCommit"`
|
||||
Connection string `json:"connection"`
|
||||
} `json:"result"`
|
||||
|
Loading…
Reference in New Issue
Block a user