We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a019ab2 commit 60f6186Copy full SHA for 60f6186
ci/test_wif.sh
@@ -18,6 +18,8 @@ run_tests_and_set_result() {
18
set -o pipefail
19
docker run \
20
--rm \
21
+ --cpus=1 \
22
+ -m 1g \
23
-e BRANCH \
24
-e SNOWFLAKE_TEST_WIF_PROVIDER \
25
-e SNOWFLAKE_TEST_WIF_HOST \
@@ -48,11 +50,14 @@ EOF
48
50
49
51
get_branch() {
52
local branch
- branch=$(git rev-parse --abbrev-ref HEAD)
- if [[ "$branch" == "HEAD" ]]; then
53
- branch=$(git name-rev --name-only HEAD | sed 's#^remotes/origin/##;s#^origin/##')
+ if [[ -n "${GIT_BRANCH}" ]]; then
54
+ # Jenkins
55
+ branch="${GIT_BRANCH}"
56
+ else
57
+ # Local
58
+ branch=$(git rev-parse --abbrev-ref HEAD)
59
fi
- echo "$branch"
60
+ echo "${branch}"
61
}
62
63
setup_parameters() {
ci/wif/parameters/parameters_wif.json.gpg
2 Bytes
0 commit comments