File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- VERSION_URL=" https://raw.githubusercontent.com/elastic/logstash/main/ci/logstash_releases.json"
6-
7- echo " Fetching versions from $VERSION_URL "
8- VERSIONS=$( curl --retry 5 --retry-delay 5 -fsSL $VERSION_URL )
9-
105set +o nounset
11- if [[ " $SNAPSHOT " == " true" ]]; then
12- key= $( echo " $VERSIONS " | jq -r ' .snapshots." ' " $ELASTIC_STACK_VERSION " ' " ' )
6+ if [[ " $SNAPSHOT " == " true" ]] && [[ " $ELASTIC_STACK_VERSION " == " 8.x " ]] ; then
7+ export ELASTICSEARCH_TREEISH=8.x
138else
14- key=$( echo " $VERSIONS " | jq -r ' .releases."' " $ELASTIC_STACK_VERSION " ' "' )
15- fi
9+ VERSION_URL=" https://raw.githubusercontent.com/elastic/logstash/main/ci/logstash_releases.json"
1610
17- export ELASTICSEARCH_TREEISH=${key% .* }
11+ echo " Fetching versions from $VERSION_URL "
12+ VERSIONS=$( curl --retry 5 --retry-delay 5 -fsSL $VERSION_URL )
13+
14+ if [[ " $SNAPSHOT " == " true" ]]; then
15+ key=$( echo " $VERSIONS " | jq -r ' .snapshots."' " $ELASTIC_STACK_VERSION " ' "' )
16+ else
17+ key=$( echo " $VERSIONS " | jq -r ' .releases."' " $ELASTIC_STACK_VERSION " ' "' )
18+ fi
19+
20+ export ELASTICSEARCH_TREEISH=${key% .* }
21+ fi
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pull_docker_snapshot() {
1111 project=" ${1?project name required} "
1212 local docker_image=" docker.elastic.co/${project} /${project} :${ELASTIC_STACK_VERSION} "
1313 echo " Pulling $docker_image "
14- docker pull " $docker_image "
14+ docker pull -q " $docker_image "
1515}
1616
1717if [ " $ELASTIC_STACK_VERSION " ]; then
Original file line number Diff line number Diff line change 1- jruby-9.4.5 .0
1+ jruby-9.4.8 .0
You can’t perform that action at this time.
0 commit comments