JENKINS-27530 - cannot create a build with number X

430 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Shaun Thompson

ungelesen,
05.09.2017, 09:29:5105.09.17
an Jenkins Developers
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

Jesse Glick

ungelesen,
05.09.2017, 18:07:0105.09.17
an Jenkins Dev
Perhaps you are attempting to schedule the build early during Jenkins startup, before state is actually initialized? Just a guess.

Shaun Thompson

ungelesen,
06.09.2017, 13:36:5006.09.17
an Jenkins Dev
This happens after Jenkins notes that it's fully up and running.

On Tue, Sep 5, 2017 at 5:07 PM Jesse Glick <jgl...@cloudbees.com> 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 jenkinsci-de...@googlegroups.com.
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.

Jesse Glick

ungelesen,
06.09.2017, 18:24:5406.09.17
an Jenkins Dev
On Wed, Sep 6, 2017 at 1:36 PM, Shaun Thompson <sth...@gmail.com> 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.
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten