-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
The odsComponentStageCopyImage logs the source and destination credentials as the shell output is not masked or postprocessed.
A simple approach could be using set +x
or adding some wtihCredentials code.
Using set +x
might be quickest solution however a user might still need details of the command.
ods-jenkins-shared-library/src/org/ods/component/CopyImageStage.groovy
Lines 95 to 101 in f6e637b
script: """ | |
skopeo copy ${copyparams} \ | |
--src-tls-verify=${this.options.verifyTLS} ${sourcetoken} \ | |
${this.options.registry}/${this.options.repo}/${this.options.image} \ | |
--dest-creds openshift:${targetInternalRegistryToken} \ | |
${dockerProtocol}${context.clusterRegistryAddress}/${context.cdProject}/${this.options.image} \ | |
--dest-tls-verify=${this.options.verifyTLS} |
Metadata
Metadata
Assignees
Labels
No labels