Following up https://pagure.io/waiverdb/pull-request/281.
scratch field should be set to true for a PR test while false for other tests. New job parameter IMAGE_IS_SCRATCH is introduced to indicate if the tested container image is "scratch".
scratch
true
false
IMAGE_IS_SCRATCH
+1
Pull-Request has been merged by rayson
@rayson IMAGE_IS_SCRATCH is always going to be true, because according to:
https://pagure.io/waiverdb/blob/master/f/openshift/pipelines/templates/waiverdb-polling-pagure.yaml#_231
when polling the master branch, the WAIVERDB_GIT_REF is always passed as a commit hash, not as a branch name.
WAIVERDB_GIT_REF
@mikeb You are right. Let me think if there is a better solution for this.
Following up https://pagure.io/waiverdb/pull-request/281.
scratchfield should be set totruefor a PR test whilefalsefor other tests. New job parameterIMAGE_IS_SCRATCHis introduced to indicate if the tested container image is "scratch".