Skip to content

Commit

Permalink
Updated file variable revert test variable (#30846)
Browse files Browse the repository at this point in the history
Updated file variable revert test variable
  • Loading branch information
michal-dagan committed Dec 24, 2023
1 parent efd1fde commit 5b0ec13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/.gitlab-ci.bucket-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ install-packs-in-server-master:

- CLOUD_SERVERS_PATH=$(cat $CLOUD_SERVERS_FILE)
- |
if [[ "${TEST_XDR_ENV}" == "true" ]]; then
if [[ "${CI_SERVER_HOST}" != "code.pan.run" ]]; then # disable-secrets-detection
cat "${CLOUD_API_KEYS}" > "cloud_api_keys.json"
else
echo "${CLOUD_API_KEYS}" > "cloud_api_keys.json"
Expand Down
4 changes: 2 additions & 2 deletions ci/.gitlab-ci.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@
# exporting the machine credentials
- CLOUD_SERVERS_PATH=$(cat $CLOUD_SERVERS_FILE)
- |
if [[ $TEST_XDR_ENV ]]; then
if [[ "${CI_SERVER_HOST}" != "code.pan.run" ]]; then # disable-secrets-detection
cat "${CLOUD_API_KEYS}" > "cloud_api_keys.json"
else
echo "${CLOUD_API_KEYS}" > "cloud_api_keys.json"
fi
- |
if [[ $TEST_XDR_ENV ]]; then
if [[ "${CI_SERVER_HOST}" != "code.pan.run" ]]; then # disable-secrets-detection
cat "${CLOUD_API_TOKENS}" > "cloud_api_tokens.json"
else
echo "${CLOUD_API_TOKENS}" > "cloud_api_tokens.json"
Expand Down
4 changes: 2 additions & 2 deletions ci/.gitlab-ci.on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ xpanse-prepare-testing-bucket:
- |
if [[ -n "${NIGHTLY}" && $SERVER_TYPE == "XSOAR SAAS" ]]; then
./Tests/scripts/run_tests.sh --generate-empty-result-file
if [[ $TEST_XDR_ENV ]]; then
if [[ "${CI_SERVER_HOST}" != "code.pan.run" ]]; then # disable-secrets-detection
cat "${CLOUD_API_KEYS}" > "cloud_api_keys.json"
else
echo "${CLOUD_API_KEYS}" > "cloud_api_keys.json"
Expand Down Expand Up @@ -758,7 +758,7 @@ test-upload-flow:
- echo "Sleeping for 10 seconds before retrying"
- sleep 10
- done
- echo "Successful triggered test upload - ${CI_SERVER_URL}/${CI_PROJECT_NAMESPACE}/content/-/pipelines/$pipeline_id" # disable-secrets-detection
- echo "Successful triggered test upload - ${CI_SERVER_URL}/${CI_PROJECT_NAMESPACE}/content/-/pipelines/$pipeline_id"
- section_end "Trigger Test Upload Flow On Testing Branch"

- section_start "Wait For Upload To Finish"
Expand Down

0 comments on commit 5b0ec13

Please sign in to comment.