Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 07524de

Browse files
committed
Add new test server env vars
1 parent 45065c7 commit 07524de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def getEnvForSuite(suiteName) {
2424
switch(suiteName) {
2525
case 'test':
2626
envVars.add("NOCK_OFF=true")
27+
envVars.add("SERVER_URL=${env.SDKS_TEST_SERVER_URL}")
28+
envVars.add("cloudant_iam_token_server=${env.SDKS_TEST_IAM_SERVER}")
2729
break
2830
default:
2931
error("Unknown test suite environment ${suiteName}")
@@ -40,7 +42,7 @@ def setupNodeAndTest(version, testSuite='test') {
4042
unstash name: 'built'
4143

4244
// Run tests using creds
43-
withCredentials([usernamePassword(credentialsId: 'clientlibs-test', usernameVariable: 'cloudant_username', passwordVariable: 'cloudant_password'), string(credentialsId: 'clientlibs-test-iam', variable: 'cloudant_iam_api_key')]) {
45+
withCredentials([usernamePassword(credentialsId: 'testServerLegacy', usernameVariable: 'cloudant_username', passwordVariable: 'cloudant_password'), string(credentialsId: 'testServerIamApiKey', variable: 'cloudant_iam_api_key')]) {
4446
withEnv(getEnvForSuite("${testSuite}")) {
4547
try {
4648
// Actions:

0 commit comments

Comments
 (0)