Allow different values for the same parameters#72
Conversation
|
according to my debug, these value are always false for pipeline jobs. |
|
I have parametrized job and those variables contain lists, but somewhy they get empty lists after a while. |
|
Do a simple test: Now run the following build (debugging /Users/evgy/MINE/html/throttle-concurrent-builds-plugin/src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java:346): X=1,Y= Somewhere there you'll see itemParams && executingUnitParams will become empty lists. In my real case I have a job that calls itself with a random uuid TOKEN environment var (parameter) and they don't get started because that job is already running with TOKEN="". |
|
no, for pipeline, it always empty, see https://issues.jenkins-ci.org/browse/JENKINS-37809 |
Hey Evgeny, thanks for your contribution! For bug fixes, I suggest writing an automated test based on the scenario you have just described. You should be able to model such a test after the existing code in |
|
Thanks for the suggestion, will do. BTW, I wasn't running pipelines, but a simple build bash script with one line: |
|
@freaker2k7 @yeluolei Is this PR still valid now that #117 has been merged and released? I must admit I'm still not fully understanding the problem this PR is trying to solve. Writing an automated test would help me understand what is going wrong here. The two automated tests I wrote in #117 should serve as a good example of how to write such tests. |
|
You can close this one. |
I was having a trouble of running jobs with different values for the same parameters.
While debugging, I noticed itemParams && executingUnitParams sometimes are both equal to and empty list ([]).
So if there're no params recognized then just start the job.