JENKINS-27530 - cannot create a build with number X

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

JENKINS-27530 - cannot create a build with number X

Shaun Thompson
I have a WorkflowJob that I've created dynamically on the installation of my custom plugin. I'm running into the issue noted in the subject when scheduling a build after a restart of Jenkins - testing locally.

```
workflowJob.scheduleBuild2(0, new SomeAction());
```

I thought the job would auto-increment as necessary but that doesn't seem to be the case after a restart.  What am I missing?

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9f50f312-9535-4fb0-bb48-0082beed979b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JENKINS-27530 - cannot create a build with number X

Jesse Glick-4
Perhaps you are attempting to schedule the build early during Jenkins startup, before state is actually initialized? Just a guess.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0oqoZgx0VEdcHk9UGgSn1%3DBr%3DXqwyV8RH5HogDNrLoqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JENKINS-27530 - cannot create a build with number X

Shaun Thompson
This happens after Jenkins notes that it's fully up and running.

On Tue, Sep 5, 2017 at 5:07 PM Jesse Glick <[hidden email]> wrote:
Perhaps you are attempting to schedule the build early during Jenkins startup, before state is actually initialized? Just a guess.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/C1XVLr1Tuvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0oqoZgx0VEdcHk9UGgSn1%3DBr%3DXqwyV8RH5HogDNrLoqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAJ1eG6w1yu-pPDjN%3D7g3iOK9qbefRtgQ-%2BS8Fs7k6nDb%2BJtT1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JENKINS-27530 - cannot create a build with number X

Jesse Glick-4
On Wed, Sep 6, 2017 at 1:36 PM, Shaun Thompson <[hidden email]> wrote:
> This happens after Jenkins notes that it's fully up and running.

Then I have no clue; try to create a minimal, self-contained,
reproducible test case that a core dev could analyze.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3fw2DTquMM4CnTEziv9K5JZi7QQWuWwyL2Cke%3D5tgdBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.