Skip to content

Commit

Permalink
Switching to manually defined build triggers.
Browse files Browse the repository at this point in the history
Uploading to parent job.
  • Loading branch information
DXCanas committed Dec 21, 2019
1 parent e947470 commit dd7b37d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .buildkite/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#! /bin/bash
set -euo pipefail
set -eo pipefail

mkdir -p whl

echo "--- Downloading whl file"

# Allows for building directly from pipeline or trigger
if [[ $BUILDKITE_TRIGGERED_FROM_BUILD_ID ]]
if [[ $LE_TRIGGERED_FROM_BUILD_ID ]]
then
echo "Downloading from triggered build"
buildkite-agent artifact download 'dist/*.whl' . --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
Expand All @@ -23,4 +23,11 @@ make run_docker
# Making folder structure match other installers (convention)
mv ./dist/android/*.apk ./dist

if [[ $LE_TRIGGERED_FROM_JOB_ID && $BUILDKITE_TRIGGERED_FROM_BUILD_ID ]]
then
echo "--- Uploading artifact to parent job"
buildkite-agent artifact upload dist/*-release.apk --job $LE_TRIGGERED_FROM_JOB_ID
fi

echo "--- Uploading artifact"
buildkite-agent artifact upload dist/*-release.apk

0 comments on commit dd7b37d

Please sign in to comment.