Skip to content

Commit

Permalink
Install latest pipeline release in tests
Browse files Browse the repository at this point in the history
This will make sure we are installing latest
pipeline release instead of the first tag on releases

This will fix the e2e tests failures observed in
#1754 with error message
like `json: unknown field "artifacts"`
  • Loading branch information
piyush-garg authored and tekton-robot committed Aug 21, 2024
1 parent 18ebe5c commit 72d3598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function install_pipeline_crd() {
if [[ -n ${RELEASE_YAML} ]];then
latestreleaseyaml=${RELEASE_YAML}
else
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])")
latestreleaseyaml="https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml"
fi
[[ -z ${latestreleaseyaml} ]] && fail_test "Could not get latest released release.yaml"
kubectl apply -f ${latestreleaseyaml} ||
Expand Down

0 comments on commit 72d3598

Please sign in to comment.