<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 22, 2016 at 5:39 PM, Vojtech Szocs <span dir="ltr"><<a href="mailto:vszocs@redhat.com" target="_blank">vszocs@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm just curious whether it's possible to do the following:<br>
<br>
Let's say we have a project (ovirt-engine-dashboard) built by Jenkins,<br>
which means there's a Jenkins job that runs build-artifacts.sh script<br>
whenever a patch gets merged via gerrit.<br>
<br>
Can we somehow pass custom parameters to build-artifacts.sh for such<br>
(Jenkins CI) builds?<br>
<br>
For example, putting something like this into commit message:<br>
<br>
My-Param 123<br>
<br>
would reflect into `My-Param` env. variable when running the script?<br></blockquote><div><br></div><div><br></div><div>you should be able to use "git show|grep My-Param" from build-artifacts.sh itself and act on it</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Motivation: for release builds (which shouldn't contain the "snapshot"<br>
part [*] in RPM release string), pass parameter to build-artifacts.sh<br>
that ensures the "snapshot" part is empty. This way, we don't need to<br>
patch the project prior to release (remove "snapshot" in spec) & then<br>
patch it again after the release (re-add "snapshot" in spec).<br>
<br>
[*] {date}git{commit}<br>
<br>
Thanks,<br>
Vojtech<br>
_______________________________________________<br>
Infra mailing list<br>
<a href="mailto:Infra@ovirt.org">Infra@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/infra" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/infra</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br></div></div></div></div>
</div></div>