File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
scripts/buildkite/release Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -euox pipefail
4
4
5
- base_build =$( buildkite-agent meta-data get base-build)
5
+ TRIGGERED_BY =$( buildkite-agent meta-data get base-build)
6
6
NEW_GIT_TAG=$( buildkite-agent meta-data get release-version)
7
7
TEST_RC=$( buildkite-agent meta-data get test-rc)
8
8
16
16
TAG=$NEW_GIT_TAG
17
17
fi
18
18
19
- main_build=$( curl -H " Authorization: Bearer $BUILDKITE_API_TOKEN " \
20
- -X GET " https://api.buildkite.com/v2/builds" \
21
- | jq " .[] | select(.meta_data.\" triggered-by\" == \" $base_build \" )" \
22
- | jq .number)
19
+ select_last_build=" last(.[] | select(.meta_data.\" triggered-by\" == \" $TRIGGERED_BY \" ) | .number)"
20
+
21
+ main_build=$( curl -s -H " Authorization: Bearer $BUILDKITE_API_TOKEN " \
22
+ -X GET " https://api.buildkite.com/v2/builds" \
23
+ | jq " $select_last_build "
24
+ )
23
25
24
26
mkdir -p artifacts
25
27
Original file line number Diff line number Diff line change 17
17
TAG=$NEW_GIT_TAG
18
18
fi
19
19
20
- main_build=$( curl -H " Authorization: Bearer $BUILDKITE_API_TOKEN " \
21
- -X GET " https://api.buildkite.com/v2/builds" \
22
- | jq " .[] | select(.meta_data.\" triggered-by\" == \" $TRIGGERED_BY \" )" \
23
- | jq .number)
20
+ select_last_build=" last(.[] | select(.meta_data.\" triggered-by\" == \" $TRIGGERED_BY \" ) | .number)"
24
21
22
+ main_build=$( curl -s -H " Authorization: Bearer $BUILDKITE_API_TOKEN " \
23
+ -X GET " https://api.buildkite.com/v2/builds" \
24
+ | jq " $select_last_build "
25
+ )
26
+
25
27
mkdir -p artifacts
26
28
27
29
repo=" cardanofoundation/cardano-wallet"
You can’t perform that action at this time.
0 commit comments