Skip to content

Commit

Permalink
change cred name
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Jun 28, 2022
1 parent 980e915 commit 11061af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
BuildManifest.getArtifactRootUrlWithoutDistribution(https://ci.opensearch.org/dbc, vars-build, 123)
assembleManifest.sh(./assemble.sh "tests/data/opensearch-build-1.3.0-rpm.yml" --base-url https://ci.opensearch.org/dbc/vars-build/1.3.0/123/linux/x64)
assembleManifest.signArtifacts({artifactPath=rpm/dist/opensearch, sigtype=.rpm, platform=linux})
signArtifacts.string({credentialsId=jenkins-signing-props, variable=configs})
signArtifacts.string({credentialsId=jenkins-rpm-signing-props, variable=configs})
signArtifacts.withCredentials([configs], groovy.lang.Closure)
signArtifacts.readJSON({text=configs})
signArtifacts.echo(RPM Add Sign)
Expand Down
2 changes: 1 addition & 1 deletion tests/jenkins/jobs/SignArtifacts_Jenkinsfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/tmp/workspace/sign.sh /tmp/workspace/artifacts --sigtype=.sig --platform=linux
)
SignArtifacts_Jenkinsfile.signArtifacts({artifactPath=/tmp/workspace/artifacts, sigtype=.rpm, platform=linux})
signArtifacts.string({credentialsId=jenkins-signing-props, variable=configs})
signArtifacts.string({credentialsId=jenkins-rpm-signing-props, variable=configs})
signArtifacts.withCredentials([configs], groovy.lang.Closure)
signArtifacts.readJSON({text=configs})
signArtifacts.echo(RPM Add Sign)
Expand Down
2 changes: 1 addition & 1 deletion vars/signArtifacts.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SignArtifacts signs the given artifacts and saves the signature in the same dire
*/
void call(Map args = [:]) {
if (args.sigtype.equals('.rpm')) {
withCredentials([string(credentialsId: 'jenkins-signing-props', variable: 'configs')]) {
withCredentials([string(credentialsId: 'jenkins-rpm-signing-props', variable: 'configs')]) {
def props = readJSON(text: configs)
def signingAccount = props['account']
def signingPassphraseSecretsArn = props['passphrase_secrets_arn']
Expand Down

0 comments on commit 11061af

Please sign in to comment.