<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Mohammad, 
<div><br>
</div>
<div>You can get the information you want from the environment variables that the Gerrit plugin sets.</div>
<div><br>
</div>
<div>Just like it was mentioned here: <a href="https://etherpad.openstack.org/p/multi-node-neutron-tempest" target="_blank" style="font-size: 10pt;">https://etherpad.openstack.org/p/multi-node-neutron-tempest</a></div>
<div><span style="font-size: 10pt;">if you'll set </span><font face="Courier New" style="font-size: 10pt;">NEUTRON_BRANCH=$GERRIT_REFSPEC</font><span style="font-size: 10pt;"> in the
<font face="Courier New">localrc</font></span></div>
<div>then Devstack will pull the change which triggered the build.</div>
<div><br>
</div>
<div>Try <font face="Courier New">env</font> shell command to find out what are the rest of the environment variables.</div>
<div><br>
</div>
<div>Best,</div>
<div><span style="font-size: 10pt;">---</span></div>
<div><span style="font-size: 10pt;">Roey</span></div>
<div><br>
</div>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF670758" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Mohammad Banikazemi [mb@us.ibm.com]<br>
<b>Sent:</b> Monday, January 20, 2014 9:32 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> [openstack-dev] [neutron] [third-party-testing] Which patchset triggered the test<br>
</font><br>
</div>
<div></div>
<div>
<p><font size="2" face="sans-serif">Have a question regarding the Jenkins/Gerrit setup for third party testing setups.</font><br>
<br>
<font size="2" face="sans-serif">When Jenkins get triggered by a patchset through the Gerrit trigger plug-in, you can execute a set of shell scripts. How do you get the information about the patchset that triggered the test? In particular, in your scripts how
 do you figure out which patchset triggered the test. Here is why I am asking this question:</font><br>
<font size="2" face="sans-serif">During our earlier IRC calls we said, one approach for testing would be using devstack to install OpenStack and run appropriate tests. The devstack stack.sh brings in the master branch without the patchset which triggered the
 test. How do I access the patchset I want to test? Am I missing something here?</font><br>
<br>
<font size="2" face="sans-serif">Thanks,</font><br>
<br>
<font size="2" face="sans-serif">Mohammad</font></p>
</div>
</div>
</div>
</div>
</body>
</html>