-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
-
1.3
I'd like to be able to do:
Launch command:
start-agent $NODE_NAME
I know there are fancier ways to deal w/ launching nodes, but for now, it would be nice to be able to use the "copy node" and just give it another node whose template includes Launch method which can access a variable that corresponds to the node's name so that I don't have to do anything other than "OK".
My first draft doesn't actually support that notation, instead:
Launch command:
script-to-start-agent-using-node-name-env-var
Where that script does:
exec start-agent $NODE_NAME
There appear to be some things which interfere with $ and _ in the Launch command field. But, I think that exposing the variable is a good step forward.
[JENKINS-54786] Launch command should include an env var for the name of the node
Assignee | New: Josh Soref [ jsoref ] |
Description |
Original:
I'd like to be able to do: {{Launch command}}: {code:java} start-agent $NODE_NAME {code} I know there are fancier ways to deal w/ launching nodes, but for now, it would be nice to be able to use the "copy node" and just give it another node whose template includes Launch method includes a variable so that I don't have to do anything other than "OK". |
New:
I'd like to be able to do: {{Launch command}}: {code:java} start-agent $NODE_NAME {code} I know there are fancier ways to deal w/ launching nodes, but for now, it would be nice to be able to use the "copy node" and just give it another node whose template includes {{Launch method}} which can access a variable that corresponds to the node's name so that I don't have to do anything other than "OK". My first draft doesn't actually support that notation, instead: {{Launch command}}: {code:java} script-to-start-agent-using-node-name-env-var{code} Where that script does: {code:java} exec start-agent $NODE_NAME{code} There appear to be some things which interfere with {{$}} and {{_}} in the {{Launch command}} field. But, I think that exposing the variable is a good step forward. |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Issue Type | Original: Bug [ 1 ] | New: Improvement [ 4 ] |
Released As | New: 1.3 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Resolved [ 5 ] |
Assignee | Original: Josh Soref [ jsoref ] | New: Harold Jackson [ 19jacksonh ] |
https://github.com/jenkinsci/command-launcher-plugin/pull/6