Skip to content

Commit

Permalink
Make sure we get only the latest release.yaml
Browse files Browse the repository at this point in the history
When setupping the (Currently unused) pipeline environment for e2e tests we were
using a static version, let's make sure we use only latest with a bit of magic
with python which should be available everywhere.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
  • Loading branch information
chmouel authored and tekton-robot committed Jul 22, 2019
1 parent 43743f8 commit 0a8dd7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ function run_yaml_tests() {

function install_pipeline_crd() {
echo ">> Deploying Tekton Pipelines"
kubectl apply -f https://github.com/tektoncd/pipeline/releases/download/v0.4.0/release.yaml ||
local latestreleaseyaml=$(curl -s https://api.github.com/repos/tektoncd/pipeline/releases|python -c "import sys, json;x=json.load(sys.stdin);ass=x[0]['assets'];print([ x['browser_download_url'] for x in ass if x['name'] == 'release.yaml'][0])")
[[ -z ${latestreleaseyaml} ]] && fail_test "Could not get latest released release.yaml"
kubectl apply -f ${latestreleaseyaml} ||
fail_test "Build pipeline installation failed"

# Make sure thateveything is cleaned up in the current namespace.
Expand Down

0 comments on commit 0a8dd7b

Please sign in to comment.