JENKINS-27530 - cannot create a build with number X
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?