Skip to content

Commit d597f45

Browse files
update
1 parent 8929eb4 commit d597f45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

JenkinsfileRelease

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ parameters {
22
string(name: 'version', defaultValue: '19.10.0', description: 'version of gem')
33
string(name: 'deployKey', defaultValue: 'xxx', description: 'key')
44
string(name: 'apiUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url')
5-
string(name: 'StartFromStage', defaultValue: '0', description: '0 based index of stage which will be started')
5+
string(name: 'StartFromStage', defaultValue: '0', description: '0 based index of stage which will be started')
6+
string(name: 'credentialsId', defaultValue: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', description: 'credentials id')
67
}
78
node('words-linux') {
89
try {
@@ -38,7 +39,7 @@ def testGemLocally()
3839
try {
3940
stage('2:checkout again'){
4041
checkout([$class: 'GitSCM', branches: [[name: '*/testPackage']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '361885ba-9425-4230-950e-0af201d90547', url: 'https://git.auckland.dynabic.com/words-cloud/words-cloud-ruby.git']]])
41-
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
42+
withCredentials([usernamePassword(credentialsId: params.credentialsId, passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
4243
sh 'mkdir -p Settings'
4344
sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$apiUrl\\"}" > Settings/servercreds.json'
4445
}

0 commit comments

Comments
 (0)