Skip to content

Commit 1b876c7

Browse files
improve jekins release script [ci skip]
1 parent ab10234 commit 1b876c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

JenkinsfileRelease

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ properties([
22
gitLabConnection('gitlab')
33
])
44

5+
parameters {
6+
string(name: 'testServerUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url')
7+
}
8+
59
node('words-linux') {
610
try {
711
stage('checkout'){
@@ -15,7 +19,7 @@ node('words-linux') {
1519
}
1620

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

0 commit comments

Comments
 (0)