<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 6:32 PM, liuxinguo <span dir="ltr"><<a href="mailto:liuxinguo@huawei.com" target="_blank">liuxinguo@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div lang="ZH-CN" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">There is no need to trigger third party CI if a patch does not pass Jenkins Verify.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I think there is a way to reach this but I’m not sure how.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">So is there any reference or suggestion to configure the third party CI to be triggered only when jenkins +1?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for any input!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Wilson Liu<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">                                                                                                                                                                                                                                           
<u></u><u></u></span></p>
</div>
</div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><div class="gmail_default" style="font-family:monospace,monospace">​In my case I inspect the comments and only trigger a run on either "run solidfire" or on a Jenkins +1.  The trick is to parse out the comments and look for the conditions that you are interested in.  The code looks something like this:</div><table class="" style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:18.2px"><tbody><tr><td id="LC51" class="" style="padding:0px 10px;vertical-align:top;overflow:visible;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">    
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span class="" style="color:rgb(167,29,93)">if</span> (event.get(<span class="" style="color:rgb(24,54,145)"><span class="">'</span>type<span class="">'</span></span>, <span class="" style="color:rgb(24,54,145)"><span class="">'</span>nill<span class="">'</span></span>) <span class="" style="color:rgb(167,29,93)">==</span> <span class="" style="color:rgb(24,54,145)"><span class="">'</span>comment-added<span class="">'</span></span> <span class="" style="color:rgb(167,29,93)">and</span></blockquote></td></tr><tr><td id="L52" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC52" class="" style="padding:0px 10px;vertical-align:top;overflow:visible;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">            <span class="" style="color:rgb(24,54,145)"><span class="">'</span>Verified+1<span class="">'</span></span> <span class="" style="color:rgb(167,29,93)">in</span> event[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>comment<span class="">'</span></span>] <span class="" style="color:rgb(167,29,93)">and</span></td></tr><tr><td id="L53" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC53" class="" style="padding:0px 10px;vertical-align:top;overflow:visible;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">            cfg[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>AccountInfo<span class="">'</span></span>][<span class="" style="color:rgb(24,54,145)"><span class="">'</span>project_name<span class="">'</span></span>] <span class="" style="color:rgb(167,29,93)">==</span> event[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>change<span class="">'</span></span>][<span class="" style="color:rgb(24,54,145)"><span class="">'</span>project<span class="">'</span></span>] <span class="" style="color:rgb(167,29,93)">and</span></td></tr><tr><td id="L54" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC54" class="" style="padding:0px 10px;vertical-align:top;overflow:visible;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">            event[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>author<span class="">'</span></span>][<span class="" style="color:rgb(24,54,145)"><span class="">'</span>username<span class="">'</span></span>] <span class="" style="color:rgb(167,29,93)">==</span> <span class="" style="color:rgb(24,54,145)"><span class="">'</span>jenkins<span class="">'</span></span> <span class="" style="color:rgb(167,29,93)">and</span></td></tr><tr><td id="L55" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC55" class="" style="padding:0px 10px;vertical-align:top;overflow:visible;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">            event[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>change<span class="">'</span></span>][<span class="" style="color:rgb(24,54,145)"><span class="">'</span>branch<span class="">'</span></span>] <span class="" style="color:rgb(167,29,93)">==</span> <span class="" style="color:rgb(24,54,145)"><span class="">'</span>master<span class="">'</span></span>):</td></tr></tbody></table><div class="gmail_default" style="font-family:monospace,monospace">​</div><br></div></div>