-
Bug
-
Resolution: Duplicate
-
Critical
-
None
When invoked by timer the return result is different from expected. This leads to incorrect configurations for build.
Steps:
Defive Grrovy script as:
return ["*","x","#","!","?","p","D"]
Run job manually (dont select any values). Actual/expected: result value is empty string.
Run job by timer. Expected: result value is empty string. Actual: value is equal to "*"
More details:
1. I use Multiconfiguration (matrix) job
2. I use groovy sandbox
3. Fallback script is empty
4. Choise type == checkbox
5. I dont use filtering function (Enable Filters == unchecked)
Jenkins version: 2.314
Plugin version - ? (I'm not admin)
- blocks
-
JENKINS-42568 The selected option from Active Choice Parameter groovy script is not used when building a job periodically (using cron)
-
- Open
-
[JENKINS-66781] Grrovy script in active choise returns the first checkbox when triggered by timer
Description |
Original:
When invoked by timer the return result is different from expected. This leads to incorrect configurations for build.
Steps: Defive Grrovy script as: {code:java} return ["*","x","#","!","?","p","D"] {code} Run job manually (dont select any values). Actual/expected: result value is empty string. Run job by timer. Expected: result value is empty string. Actual: value is equal to "*" More details: 1. I use Multiconfiguration (matrix) job 2. I use groovy sandbox 3. Fallback script is empty 4. Choise type == checkbox 5. I dont use filtering function (Enable Filters == unchecked) |
New:
When invoked by timer the return result is different from expected. This leads to incorrect configurations for build.
Steps: Defive Grrovy script as: {code:java} return ["*","x","#","!","?","p","D"] {code} Run job manually (dont select any values). Actual/expected: result value is empty string. Run job by timer. Expected: result value is empty string. Actual: value is equal to "*" More details: 1. I use Multiconfiguration (matrix) job 2. I use groovy sandbox 3. Fallback script is empty 4. Choise type == checkbox 5. I dont use filtering function (Enable Filters == unchecked) Jenkins version: 2.314 Plugin version - ? (I'm not admin) |
Link | New: This issue blocks JENKINS-42568 [ JENKINS-42568 ] |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Hi, thanks for reporting the issue. I remembered reading a similar issue. I think I found it, so marking it as duplicated. But nevertheless, the more examples to reproduce the merrier
thanks! And pull requests welcome in case you have time to work on it.