Use 'WORKSPACE' env var to find other dependent releases
@@ -5,6 +5,8 @@ set -e
scripts_path=./$(dirname $0)
eval $($scripts_path/get_paths.sh)
+workspace=${WORKSPACE:-"$HOME/workspace"}
+
echo "checking code for compilation errors..."
pushd $DIEGO_RELEASE_DIR/src/code.cloudfoundry.org/inigo > /dev/null
@@ -26,13 +28,13 @@ if [ "x${USE_GROOTFS}" = "xtrue" ]; then
fly ${target} execute -p -x \
-c $DIEGO_RELEASE_DIR/scripts/ci/run_inigo_grootfs.build.yml \
-i diego-release=$PWD \
- -i garden-runc-release=$HOME/workspace/garden-runc-release \
- -i grootfs-release=$HOME/workspace/grootfs-release \
+ -i garden-runc-release=$workspace/garden-runc-release \
+ -i grootfs-release=$workspace/grootfs-release \
-- "$@"
else
fly ${target} execute -p -x \
-c $DIEGO_RELEASE_DIR/scripts/ci/run_inigo.build.yml \
-i diego-release=$PWD \
- -i garden-runc-release=$HOME/workspace/garden-runc-release \
+ -i garden-runc-release=$workspace/garden-runc-release \
-- "$@"
fi
