diff --git a/test/build.sh b/test/build.sh index 7a42261f0..232a461e8 100755 --- a/test/build.sh +++ b/test/build.sh @@ -27,13 +27,14 @@ NPD_STAGING_REGISTRY=${NPD_STAGING_REGISTRY:-"gcr.io/node-problem-detector-stagi PR_ENV_FILENAME=${PR_ENV_FILENAME:-"pr.env"} CI_ENV_FILENAME=${CI_ENV_FILENAME:-"ci.env"} ROOT_PATH=$(git rev-parse --show-toplevel) +GCS_URL_PREFIX="https://storage.googleapis.com/" function print-help() { echo "Usage: build.sh [args...]" echo "Available arguments:" - echo " pr [pull_refs]: Build node-problem-detector for presubmit jobs and push to staging." - echo " ci: Build node-problem-detector for CI jobs and push to staging." - echo " get-ci-env: Download environment variable file from staging for CI job." + echo " pr [pull_number]: Build node-problem-detector for presubmit jobs and push to staging." + echo " ci: Build node-problem-detector for CI jobs and push to staging." + echo " get-ci-env: Download environment variable file from staging for CI job." } function get-version() { @@ -44,6 +45,11 @@ function get-version() { fi } +function install-lib() { + apt-get update + apt-get install -y libsystemd-dev +} + function write-env-file() { local -r env_file="${1}" if [[ -z "${env_file}" ]]; then @@ -52,20 +58,29 @@ function write-env-file() { fi cat > ${ROOT_PATH}/${env_file} <