<p dir="ltr"><br></p>
<p dir="ltr">On Jun 25, 2016 4:19 AM, "Andrew Lee Rubinger" <<a href="mailto:alr@redhat.com">alr@redhat.com</a>> wrote:<br>
><br>
> Played around a bunch and I think it's this: The build is triggered before Jenkins is up and running.</p>
<p dir="ltr">The sync plugin ought not care, when it comes up it should see the build in the new state and process it. Please open an issue against the sync plugin repo and tag Jimmi. (but we probably won't be rebuilding the image during summit week even if we get a fix) <br></p>
<p dir="ltr">><br>
> Is there a more appropriate event we can use as a trigger like "Jenkins probe succeeds"?</p>
<p dir="ltr">So your template is, upon instantiation, kicking off your pipeline build? (presumably because you have a ConfigChangeTrigger on your pipeline buildconfig definition) </p>
<p dir="ltr">You could remove that trigger and just manually start the build from openshift once you know jenkins is up, as a workaround. <br><br></p>
<p dir="ltr">><br>
> S,<br>
> ALR<br>
><br>
> On Fri, Jun 24, 2016 at 10:57 PM, Ben Parees <<a href="mailto:bparees@redhat.com">bparees@redhat.com</a>> wrote:<br>
>><br>
>><br>
>> On Jun 24, 2016 10:30 PM, "Andrew Lee Rubinger" <<a href="mailto:alr@redhat.com">alr@redhat.com</a>> wrote:<br>
>> ><br>
>> > Hi all:<br>
>> ><br>
>> > So with Ben's new changes in place (thanks!) the k8s namespace is set in Jenkins kubernetes-plugin:<br>
>> ><br>
>> >   <a href="https://ibin.co/2lpVENzMzOGm.png">https://ibin.co/2lpVENzMzOGm.png</a><br>
>> ><br>
>> > This gets us an OpenShift build triggered properly, but it waits indefinitely without ever kicking off the build in Jenkins:<br>
>> ><br>
>> >   <a href="https://ibin.co/2lpVJNi1p37O.png">https://ibin.co/2lpVJNi1p37O.png</a><br>
>> ><br>
>> > Manually triggering a second build in OpenShift calls into Jenkins properly and completes as expected.<br>
>> ><br>
>> > So...race condition?  Tries to kick off a build before namespace is set?<br>
>><br>
>> No, the namespace is set in the jenkins config.xml before jenkins after starts, so it's not that. (also it only affects slave launching, not pipeline starting) But what it is i'm not sure.  The first build is created/started by you instantiating your template? I think it's a question for jimmi as to why it doesn't see the new openshift build and start the pipeline in response.<br>
>><br>
>> ><br>
>> > S,<br>
>> > ALR<br>
>> ><br>
>> > -- <br>
>> > Red Hat Developer Programs Architecture<br>
>> > @ALRubinger<br>
><br>
><br>
><br>
><br>
> -- <br>
> Red Hat Developer Programs Architecture<br>
> @ALRubinger</p>