Skip to content

Commit

Permalink
Add env vars to jenkinsfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV committed Mar 21, 2024
1 parent d532ed3 commit 957402f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,17 @@ def apiTest (String stageName, String stageUrl, String envSuffix) {
if ("dev".equalsIgnoreCase("${envSuffix}")) {
sh """
newman run ./wells_search_api_tests.json \
--global-var base_url=\$BASE_URL \
-r cli,junit,html
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./wells_search_V2_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
"""
}

Expand Down
6 changes: 6 additions & 0 deletions Jenkinsfile.ocp4
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,15 @@ def apiTest (String stageName, String stageUrl, String envSuffix) {
sh """
newman run ./wells_search_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./wells_search_V2_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
"""
}
Expand Down

0 comments on commit 957402f

Please sign in to comment.