Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

more than one build in queue for specific job in jenkins

I have a job which I trigger with parameters from another job using wget. each time I give the job different parameter - which svn revision to run with.
I don't want to allow concurrent runs of the same job, but I want to allow more than one pending build in the queue for the job.
From what I have tried it didn't work, I see in the queue only one build of the job pending, no matter how many builds I trigger.
Is it possible with any plugin?

like image 552
oshai Avatar asked Nov 25 '11 11:11

oshai


People also ask

Can we run multiple builds in Jenkins?

Yes it's possible. Doc: If this option is checked, Jenkins will schedule and execute multiple builds concurrently (provided that you have sufficient executors and incoming build requests.)

Can a single Jenkins job run on multiple nodes?

Step 1− If multi node selection was enabled, you get the chance to select multiple nodes to run the job on. The job will then be executed on each of the nodes, one after the other or concurrent - depending on the configuration.

How many builds are included in the build trend for each Jenkins job?

Jenkins keeps the last 30 builds of all our jobs.

How do I restrict Jenkins jobs to Execute on a specific machine?

There are few more simple ways if you just need this feature: Use Authorize Project plugin to assign authentication to your builds. Then Just set Computer/Build permissions for you nodes (Can be done in Role Strategy plugin for example) Use Job Restrictions Plugin to restrict access to node via Node properties.


1 Answers

Jenkins doesn't place a build in the queue if it already contains one with the same param values.

To trick it, you could add an additional, unused param, and set it to a random value when calling wget.

like image 145
socha23 Avatar answered Oct 17 '22 17:10

socha23