jenkins-job-builder/tests/triggers/fixtures/jms-messaging001.xml
Waldemar Znoinski 2ea9841a96
Add support for noSquash (no-squash) in jms-messaging trigger
It's sometimes required to trigger a job build on every CI message.
To achieve that the XML's noSquash (jjb: no-squash) has to be set to
True.

see triggers section at:
https://wiki.jenkins.io/display/JENKINS/JMS+Messaging+Plugin

Change-Id: I389e59cca4f649379614f7f6247bf76cf4a0ba95
2019-12-13 14:38:32 -05:00

22 lines
879 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<triggers class="vector">
<com.redhat.jenkins.plugins.ci.CIBuildTrigger>
<spec/>
<noSquash>true</noSquash>
<selector>topic = &quot;org.fedoraproject.prod.fedimg.image.upload&quot;</selector>
<providerName>fedmsg</providerName>
<checks>
<com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck>
<field>compose</field>
<expectedValue>.+compose_id.+Fedora-Atomic.+</expectedValue>
</com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck>
<com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck>
<field>image_name</field>
<expectedValue>.+Fedora-Atomic.+</expectedValue>
</com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck>
</checks>
</com.redhat.jenkins.plugins.ci.CIBuildTrigger>
</triggers>
</project>