
#104: accept only backports into stable branches ---------------------+------------------------ Reporter: danken | Owner: infra@… Type: task | Status: new Priority: major | Milestone: oVirt 3.4 Component: Jenkins | Version: Severity: High | Resolution: Keywords: | Blocked By: Blocking: | ---------------------+------------------------ Comment (by ekohl): Replying to [comment:2 danken]:
Replying to [comment:1 ekohl]:
It needs a check for {{{Label: $BRANCH-only}}} and I'm not yet sure
how we reliably check all commits are valid without checking all commits every time. Maybe we can use {{{git log master..HEAD}}}, or was it {{{...}}} for the strictly only in HEAD but not in master?
Why do we need to check all commits?
You're right, if the job runs per-change before merging the only the last commit is sufficient. That makes it a lot easier.
If the current commit message has "Label: $BRANCH-only", it should have a free pass into $BRANCH.
{{{ git show | grep -q -e "^ Label: $BRANCH-only\$" }}}
should be enough. I never said it was hard :)
-- Ticket URL: <https://fedorahosted.org/ovirt/ticket/104#comment:3> ovirt <http://www.ovirt.org/> oVirt - virtualization made easy.