Skip to content

Commit d83e20a

Browse files
fix
1 parent 88c0d91 commit d83e20a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

ci/test_rockylinux9.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ else
2222
mkdir ${CLIENT_LOG_DIR_PATH_DOCKER}
2323
fi
2424

25-
# replace test password with a more complex one, and generate known ssm file
26-
python3.11 -m pip install -U snowflake-connector-python --only-binary=cffi >& /dev/null
27-
python3.11 ${THIS_DIR}/change_snowflake_test_pwd.py
28-
mv ${CONNECTOR_DIR}/test/parameters_jenkins.py ${CONNECTOR_DIR}/test/parameters.py
25+
# Replace test password with a more complex one, and generate known ssm file
26+
# This is only needed for Jenkins, not GitHub Actions
27+
if [[ "$GITHUB_ACTIONS" != "true" ]]; then
28+
python3.11 -m pip install -U snowflake-connector-python --only-binary=cffi >& /dev/null
29+
python3.11 ${THIS_DIR}/change_snowflake_test_pwd.py
30+
mv ${CONNECTOR_DIR}/test/parameters_jenkins.py ${CONNECTOR_DIR}/test/parameters.py
31+
else
32+
echo "[Info] Running in GitHub Actions, skipping password change step"
33+
fi
2934

3035
# Fetch wiremock
3136
curl https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/3.11.0/wiremock-standalone-3.11.0.jar --output ${CONNECTOR_DIR}/.wiremock/wiremock-standalone.jar

0 commit comments

Comments
 (0)