Skip to content

Commit

Permalink
add jenkins release wrapper (elastic#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli authored and jalvz committed Jul 17, 2018
1 parent 0250e8d commit a8a5438
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _beats/dev-tools/jenkins_release.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions script/update_beats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/***" \
Expand Down

0 comments on commit a8a5438

Please sign in to comment.