diff --git a/.ci/end2end.groovy b/.ci/end2end.groovy index 8ddded4f5ef2b..8ad810717d86e 100644 --- a/.ci/end2end.groovy +++ b/.ci/end2end.groovy @@ -107,7 +107,7 @@ pipeline { dir("${BASE_DIR}"){ sh ''' jobs -l - docker build --tag cypress ${CYPRESS_DIR}/ci + docker build --tag cypress --build-arg NODE_VERSION=$(cat .node-version) ${CYPRESS_DIR}/ci docker run --rm -t --user "$(id -u):$(id -g)" \ -v `pwd`:/app --network="host" \ --name cypress cypress''' diff --git a/x-pack/legacy/plugins/apm/e2e/ci/Dockerfile b/x-pack/legacy/plugins/apm/e2e/ci/Dockerfile index 1f0a867b4225b..2bcc5a5fd843a 100644 --- a/x-pack/legacy/plugins/apm/e2e/ci/Dockerfile +++ b/x-pack/legacy/plugins/apm/e2e/ci/Dockerfile @@ -1,4 +1,5 @@ -FROM node:10.19.0 +ARG NODE_VERSION +FROM node:$NODE_VERSION RUN apt-get -qq update \ && apt-get -y -qq install xvfb \