zuul trigger pep8 job when fail and put it in loop

asked 2015-04-29 06:59:43 -0600

zohaib gravatar image

updated 2015-04-30 04:53:56 -0600

we have pep8 job in our CI system when it is failed zuul trigger it again and jenkins server went in to a nonstop loop.we are trying that when a job is failed it should be abort and stop.please help me to solve this below is my yaml is i am doing some thing ewrong on line -event :comment-added

  - name: check
    description: Newly uploaded patchsets enter this pipeline to receive an initial +/-1 Verified vote from Jenkins.
    success-message: Build succeeded (check pipeline).
    failure-message: Build failed (check pipeline).
    manager: IndependentPipelineManager
    source: gerrit
    precedence: normal
      open: True
      current-patchset: True
        - event: patchset-created
        - event: change-restored
        - event: comment-added
          comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*(recheck|reverify)
        - event: comment-added
            - verified: [-1, -2]
              username: jenkins
        verified: 1
        to: developers@example.lab
        verified: -1
        to: developers@example.lab
        from: manager@example.lab
        subject: Change {change} failed
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-29 08:23:17 -0600

Review your Zuul debug.log for confirmation, but I suspect you have configured a pipeline in your layout.yaml to trigger on all comments on a change rather than filtering for specific expressions in comments (or rather than only triggering on new patchsets). This can cause Zuul to react to events from Gerrit's stream for the comments it has left, and continually retrigger itself in an infinite loop.

Also, most of the Zuul developers and user community don't really pay attention to ask.openstack.org (it's more for OpenStack server software, not community infrastructure projects). I recommend the #openstack-infra IRC channel on Freenode or openstack-infra@lists.openstack.org mailing list for Zuul help.

edit flag offensive delete link more


i have added yaml in my post please take a look

zohaib gravatar imagezohaib ( 2015-04-30 04:54:41 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-29 06:59:43 -0600

Seen: 155 times

Last updated: Apr 30 '15