-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Hudson Groovy builder: 1.20
promoted builds plugin: 2.17
Jenkins: 1.583
Groovy: groovy-2.4.0-beta-2
host: Windows 2013R2 Server
I'm using 'Restrict where this process can be run' option together with 'Execute system groovy script' as an action.
The script executes on the specific host, but when I create a groovy process:
cmd = ("ipconfig /all").execute() cmd.consumeProcessOutput(out, err) cmd.waitFor() println out println err
The new created process is running on the Jenkins host, not on the required node.
[JENKINS-26880] 'Restrict where this promotion process can be run' doesn't work for new groovy process
Component/s | New: groovy-plugin [ 15549 ] | |
Component/s | Original: promoted-builds-plugin [ 15567 ] | |
Description |
Original:
I'm using 'Restrict where this promotion precess can be run' option together with 'Execute system groovy script' as an action. The script executes on the specific host, but when I create a groovy process: {noformat} cmd = ("ipconfig /all").execute() cmd.consumeProcessOutput(out, err) cmd.waitFor() println out println err {noformat} The new created process is running on the Jenkins host, not on the required node. |
New:
I'm using 'Restrict where this process can be run' option together with 'Execute system groovy script' as an action. The script executes on the specific host, but when I create a groovy process: {noformat} cmd = ("ipconfig /all").execute() cmd.consumeProcessOutput(out, err) cmd.waitFor() println out println err {noformat} The new created process is running on the Jenkins host, not on the required node. |
Environment |
Original:
promoted builds plugin: 2.17 Jenkins: 1.583 Groovy: groovy-2.4.0-beta-2 host: Windows 2013R2 Server |
New:
Hudson Groovy builder: 1.20 promoted builds plugin: 2.17 Jenkins: 1.583 Groovy: groovy-2.4.0-beta-2 host: Windows 2013R2 Server |
Workflow | Original: JNJira [ 161057 ] | New: JNJira + In-Review [ 180557 ] |