#!/usr/bin/env bash

# This should be copied into the Bamboo task to download the latest pipedream
# proxy and Bamboo proxy code and execute it without cloning the entire
# repository first.
#
# NOTE: The cinder_proxy command can take arguments which need to be changed
# to run different plans (gpu, optimized, clang, etc.).

set -euo pipefail

# NOTE: You can modify these variables in Run customized to change the location.
$bamboo_cinder_proxy_download_command > cinder_proxy
$bamboo_pipedream_proxy_download_command > pipedream_proxy

chmod +x pipedream_proxy

python3.6 cinder_proxy --pipeline Example
