File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 66
77pull_docker_snapshot () {
88 project=" ${1?project name required} "
9+ stack_version_alias=" ${2?stack version alias required} "
910 local docker_image=" docker.elastic.co/${project} /${project}${DISTRIBUTION_SUFFIX} :${ELASTIC_STACK_VERSION} "
1011 echo " Pulling $docker_image "
1112 if docker pull " $docker_image " ; then
@@ -30,8 +31,8 @@ if [ -z "${ELASTIC_STACK_VERSION}" ]; then
3031 exit 1
3132fi
3233
33- # save the original arg if needed
34- ELASTIC_STACK_VERSION_ARG =" $ELASTIC_STACK_VERSION "
34+ # The ELASTIC_STACK_VERSION may be an alias, save the original before translating it
35+ ELASTIC_STACK_VERSION_ALIAS =" $ELASTIC_STACK_VERSION "
3536
3637echo " Fetching versions from $VERSION_URL "
3738VERSIONS=$( curl -s $VERSION_URL )
@@ -64,9 +65,9 @@ export DISTRIBUTION_SUFFIX
6465echo " Testing against version: $ELASTIC_STACK_VERSION (distribution: ${DISTRIBUTION:- " default" } )"
6566
6667if [[ " $ELASTIC_STACK_VERSION " = * " -SNAPSHOT" ]]; then
67- pull_docker_snapshot " logstash"
68+ pull_docker_snapshot " logstash" $ELASTIC_STACK_VERSION_ALIAS
6869 if [ " $INTEGRATION " == " true" ]; then
69- pull_docker_snapshot " elasticsearch"
70+ pull_docker_snapshot " elasticsearch" $ELASTIC_STACK_VERSION_ALIAS
7071 fi
7172fi
7273
Original file line number Diff line number Diff line change @@ -4,14 +4,13 @@ import:
44jobs :
55 include :
66 - stage : " Integration Tests"
7- - env : INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=7.current
7+ env : INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=7.current
88 - env : INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=8.previous
99 - env : INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=8.current
1010 - env : INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=8.next
1111 - env : INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=8.future
12- # - env: INTEGRATION=true SNAPSHOT=true LOG_LEVEL=info ELASTIC_STACK_VERSION=main
1312 - stage : " Secure Integration Tests"
14- - env : SECURE_INTEGRATION=true INTEGRATION=true LOG_LEVEL=info ELASTIC_STACK_VERSION=8.current SNAPSHOT=true
13+ env : SECURE_INTEGRATION=true INTEGRATION=true LOG_LEVEL=info ELASTIC_STACK_VERSION=8.current SNAPSHOT=true
1514 - env : SECURE_INTEGRATION=true INTEGRATION=true LOG_LEVEL=info ELASTIC_STACK_VERSION=7.current
1615 - env : SECURE_INTEGRATION=true INTEGRATION=true LOG_LEVEL=info ELASTIC_STACK_VERSION=7.current ES_SSL_KEY_INVALID=true
1716 - env : SECURE_INTEGRATION=true INTEGRATION=true LOG_LEVEL=info ELASTIC_STACK_VERSION=7.current ES_SSL_SUPPORTED_PROTOCOLS=TLSv1.3
You can’t perform that action at this time.
0 commit comments