Skip to content

Commit

Permalink
Parse date for URL automatically from commit date
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Pojomovsky committed May 10, 2018
1 parent 1b66dab commit eef0780
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/continuous_integration/jenkins/build
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ COMPILER_PATH="/usr/bin/g++-5"

mkdir -p install

# Downloads drake binary and untars it into the install directory.
# The date that conforms part of the build URL is automatically parsed from the
# drake respository's last commit date, avoiding us from doing it by hand.
pushd drake
DATE="$(git log -n 1 --pretty='format:%cd' --date=format:'%Y%m%d')"
popd
BUILD_URL="https://drake-packages.csail.mit.edu/drake/nightly/drake-$DATE-xenial.tar.gz"

# The date of this URL should be updated everytime the drake commit is updated
# in the delphyne.repos file, found on delphyne_gui.
wget -qO- https://drake-packages.csail.mit.edu/drake/nightly/drake-20180427-xenial.tar.gz | tar xvz -C `pwd`/install --strip 1
# Downloads drake binary and untars it into the install directory.
wget -qO- $BUILD_URL | tar xvz -C `pwd`/install --strip 1

mkdir -p build

Expand Down

0 comments on commit eef0780

Please sign in to comment.