-
Bug
-
Resolution: Duplicate
-
Minor
-
None
I expected the following to create an environmental variable named GIT_COMMIT to be available within the scope of the jobs.groovy file:
withEnv(["GIT_COMMIT=foo"]) { jobDsl additionalClasspath: 'jobs/src/main/groovy', removedJobAction: 'DELETE', removedViewAction: 'DELETE', targets: 'jobs/jobs/jobs.groovy', unstableOnDeprecation: true }
Instead I get an error:
No such property: GIT_COMMIT for class: jobs
- duplicates
-
JENKINS-36679 build parameter availability in DSL from pipelines
- Closed