Created
September 27, 2016 16:08
-
-
Save chetan/7da41b050485a4ccdece5585bf07e066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $BUILD_ROOT/habitat | |
$JENKINS_HOME/tools/habitat/latest/hab pkg build . | |
hart=$(ls results/*.hart) # make sure build fails | |
sha256sum $hart | awk \'{print $1}\' > $hart.sha256 | |
pkg_ident=$(cat results/last_build.env | grep pkg_ident | cut -d= -f2) | |
# cribbed from components/studio/bin/hab-studio.sh | |
dir_name="$(pwd | sed -e 's,^/$,root,' -e 's,^/,,' -e 's,/,--,g')" | |
: ${HAB_STUDIOS_HOME:=/hab/studios} | |
: ${HAB_STUDIO_ROOT:=$HAB_STUDIOS_HOME/$dir_name} | |
export HAB_STUDIOS_HOME HAB_STUDIO_ROOT | |
$JENKINS_HOME/tools/habitat/latest/hab studio run hab pkg install chetan/hab-pkg-mesosize-aurora | |
$JENKINS_HOME/tools/habitat/latest/hab studio run hab pkg exec chetan/hab-pkg-mesosize-aurora hab-pkg-mesosize-aurora $pkg_ident | |
$JENKINS_HOME/tools/habitat/latest/hab studio rm | |
unset HAB_STUDIOS_HOME HAB_STUDIO_ROOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment