Install opc from https://docs.openshift.com/pipelines/latest/tkn_cli/installing-tkn.html
pr=abcde # some hash code for the specific pull request pipeline
# get the full pipeline run log (all tasks)
opc pr logs -n rhdh-tenant rhdh-hub-1-on-pull-request-${pr} -f | tee ~/tmp/rhdh-hub-1-on-pull-request-${pr}.log.txt &
# for just the build container, wait 8 mins for dep resolution step, then get the task run
sleep 8m; opc tr logs -n rhdh-tenant rhdh-hub-1-on-pull-request-${pr}-build-container -f | tee ~/tmp/rhdh-hub-1-on-pull-request-${pr}-build-container.log.txt
or for a push
pr=abcde # some hash code for the specific push pipeline
# get the full pipeline run log (all tasks)
opc pr logs -n rhdh-tenant rhdh-hub-1-on-push-${pr} -f | tee /tmp/rhdh-hub-1-on-push-${pr}.log.txt &
# for just the build container, wait 8 mins for dep resolution step, then get the task run
sleep 8m; opc tr logs -n rhdh-tenant rhdh-hub-1-on-push-${pr}-build-container -f | tee /tmp/rhdh-hub-1-on-push-${pr}-build-container.log.txt
opc pr logs -n rhtap-releng-tenant managed-9k68t -f | tee /tmp/release-1.4.2-stage-managed-9k68t.log.txt