Skip to content

Commit 1f56295

Browse files
Merge pull request openshift#367 from chmouel/debug
Add debug to debug tomrrow job
2 parents 575735c + a403238 commit 1f56295

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openshift/release/fetch-pipeline.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
# set max shift to 0, so that when a version is explicitly specified that version is fetched
1010
# modify this in future if a workflow based on latest version and recent (shifted) versions is needed
1111
set -eu
12+
set -x
1213

13-
CURL_OPTIONS="-s" # -s for quiet, -v if you want debug
14+
CURL_OPTIONS="-v" # -s for quiet, -v if you want debug
1415

1516
MAX_SHIFT=1
1617
NIGHTLY_RELEASE="https://raw.githubusercontent.com/openshift/tektoncd-pipeline/release-next/openshift/release/tektoncd-pipeline-nightly.yaml"
@@ -24,6 +25,7 @@ trap clean EXIT
2425
function get_version {
2526
local shift=${1} # 0 is latest, increase is the version before etc...
2627
curl -f ${CURL_OPTIONS} -o ${TMPFILE} https://api.github.com/repos/tektoncd/pipeline/releases
28+
cat >&2 ${TMPFILE}
2729
local version=$(python -c "from pkg_resources import parse_version;import json;jeez=json.load(open('${TMPFILE}'));print(sorted([x['tag_name'] for x in jeez], key=parse_version, reverse=True)[${shift}])")
2830
PAYLOAD_PIPELINE_VERSION=${version}
2931
echo $(eval echo ${STABLE_RELEASE_URL})

0 commit comments

Comments
 (0)