Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
Description
If you try something like
agent { label "${SOME_ENV_VAR}" } environment { SOME_ENV_VAR = "some-label" }
You'll get an error due to SOME_ENV_VAR not existing in the binding. Not ideal, obviously, but I'm not sure if we can actually solve this without significant rewrites.
Attachments
Issue Links
- is duplicated by
-
JENKINS-46525 NPE: Cannot invoke method getScript() on null object in stage/agent/label
-
- Closed
-
-
JENKINS-44352 Variable resolution in GString fails for docker args
-
- Closed
-
- links to
I finally found a workaround for this: