diff --git a/_beats/dev-tools/jenkins_release.sh b/_beats/dev-tools/jenkins_release.sh new file mode 100755 index 00000000000..68f49d96815 --- /dev/null +++ b/_beats/dev-tools/jenkins_release.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euox pipefail + +source ./_beats/dev-tools/common.bash && jenkins_setup + +cleanup() { + rm -rf $TEMP_PYTHON_ENV +} +trap cleanup EXIT + +# Run the deploy script with the appropriate version in the environment. +cd ${WORKSPACE}/src/github.com/elastic/apm-server +make SNAPSHOT=yes clean update package + +ln -s ${WORKSPACE}/src/github.com/elastic/apm-server/build/upload ${WORKSPACE}/src/github.com/elastic/apm-server/build/distributions diff --git a/script/update_beats.sh b/script/update_beats.sh index 073e648e448..234a85146d5 100755 --- a/script/update_beats.sh +++ b/script/update_beats.sh @@ -23,6 +23,7 @@ git clone https://github.com/elastic/beats.git ${GIT_CLONE} # sync rsync -crpv --delete \ --exclude=dev-tools/packer/readme.md.j2 \ + --exclude=dev-tools/jenkins_release.sh \ --include="dev-tools/***" \ --include="script/***" \ --include="testing/***" \