Ask Your Question
0

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

pipelines:
  - 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
    require:
      open: True
      current-patchset: True
    trigger:
      gerrit:
        - event: patchset-created
        - event: change-restored
        - event: comment-added
          comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*(recheck|reverify)
        - event: comment-added
          require-approval:
            - verified: [-1, -2]
              username: jenkins
    success:
      gerrit:
        verified: 1
      smtp:
        to: developers@example.lab
    failure:
      gerrit:
        verified: -1
      smtp:
        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
0

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

Comments

i have added yaml in my post please take a look

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 76 times

Last updated: Apr 30 '15