Skip to content

Commit

Permalink
improve jekins release script [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-finozhenok committed Mar 27, 2024
1 parent ab10234 commit 1b876c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion JenkinsfileRelease
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ properties([
gitLabConnection('gitlab')
])

parameters {
string(name: 'testServerUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url')
}

node('words-linux') {
try {
stage('checkout'){
Expand All @@ -15,7 +19,7 @@ node('words-linux') {
}

withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"https://api-qa.aspose.cloud\\"}" > testConfig.json'
sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$testServerUrl\\"}" > testConfig.json'
}
}

Expand Down

0 comments on commit 1b876c7

Please sign in to comment.