<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for your input John Griffith, it looks like that the code you modify is not in layout.yaml ().<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Could you tell me the exactly filename where you made the change?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks very much!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Wilson Liu<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt"> John Griffith [mailto:john.griffith8@gmail.com]
<br>
</span><b><span style="font-size:10.0pt">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt"> 2016</span><span style="font-size:10.0pt">年<span lang="EN-US">2</span>月<span lang="EN-US">23</span>日<span lang="EN-US"> 9:40<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> OpenStack Development Mailing List (not for usage questions)<br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> OpenStack Infra; Luozhen<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [OpenStack-Infra] [openstack-dev] [cinder] How to configure the third party CI to be triggered only when jenkins +1<o:p></o:p></span></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Feb 22, 2016 at 6:32 PM, liuxinguo <<a href="mailto:liuxinguo@huawei.com" target="_blank">liuxinguo@huawei.com</a>> wrote:<o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">There is no need to trigger third party CI if a patch does not pass Jenkins Verify.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">I think there is a way to reach this but I’m not sure how.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">So is there any reference or suggestion to configure the third party CI to be triggered only when jenkins +1?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Thanks for any input!<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Wilson Liu<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">
<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Cambria Math","serif""></span><span lang="EN-US" style="font-family:"Courier New"">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:<o:p></o:p></span></p>
</div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border-spacing:0px">
<tbody>
<tr>
<td valign="top" style="padding:0cm 7.5pt 0cm 7.5pt;word-wrap:normal;overflow:visible" id="LC51">
<p class="MsoNormal" style="line-height:13.65pt"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
<o:p></o:p></span></p>
<blockquote style="margin-left:30.0pt;margin-right:0cm">
<p class="MsoNormal" style="line-height:13.65pt"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">if</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"> (event.get(</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'type'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">,
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'nill'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">)
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">==</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'comment-added'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">and</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</blockquote>
</td>
</tr>
<tr>
<td width="50" nowrap="" valign="top" style="width:37.5pt;border:solid #EEEEEE 1.0pt;padding:0cm 7.5pt 0cm 7.5pt;min-width:50px;color:rgba(0,0,0,0.298039)" id="L52">
</td>
<td valign="top" style="padding:0cm 7.5pt 0cm 7.5pt;word-wrap:normal;overflow:visible" id="LC52">
<p class="MsoNormal" style="line-height:13.65pt"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'Verified+1'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">in</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"> event[</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'comment'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">]
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">and</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="50" nowrap="" valign="top" style="width:37.5pt;border:solid #EEEEEE 1.0pt;border-top:none;padding:0cm 7.5pt 0cm 7.5pt;min-width:50px;color:rgba(0,0,0,0.298039)" id="L53">
</td>
<td valign="top" style="padding:0cm 7.5pt 0cm 7.5pt;word-wrap:normal;overflow:visible" id="LC53">
<p class="MsoNormal" style="line-height:13.65pt"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"> cfg[</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'AccountInfo'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">][</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'project_name'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">]
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">==</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"> event[</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'change'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">][</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'project'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">]
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">and</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="50" nowrap="" valign="top" style="width:37.5pt;border:solid #EEEEEE 1.0pt;border-top:none;padding:0cm 7.5pt 0cm 7.5pt;min-width:50px;color:rgba(0,0,0,0.298039)" id="L54">
</td>
<td valign="top" style="padding:0cm 7.5pt 0cm 7.5pt;word-wrap:normal;overflow:visible" id="LC54">
<p class="MsoNormal" style="line-height:13.65pt"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"> event[</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'author'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">][</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'username'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">]
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">==</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'jenkins'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">and</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="50" nowrap="" valign="top" style="width:37.5pt;border:solid #EEEEEE 1.0pt;border-top:none;padding:0cm 7.5pt 0cm 7.5pt;min-width:50px;color:rgba(0,0,0,0.298039)" id="L55">
</td>
<td valign="top" style="padding:0cm 7.5pt 0cm 7.5pt;word-wrap:normal;overflow:visible" id="LC55">
<p class="MsoNormal" style="line-height:13.65pt"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333"> event[</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'change'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">][</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'branch'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">]
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#A71D5D">==</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#183691">'master'</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#333333">):<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Cambria Math","serif""></span><span lang="EN-US" style="font-family:"Courier New""><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>