Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
It'd be convenient to have something on SymbolLookup that would take an object, get its class, get the @Symbol annotation on that class if it exists, and either return the value (if it exists and isn't null) or null. I've found myself writing this code in a few places already, so centralizing it seems wise.
Attachments
Issue Links
- is blocked by
-
JENKINS-37820 Stack overflow getting symbol for global configuration
-
- Resolved
-
- is blocking
-
JENKINS-37397 Allow tool step to use Symbol names instead of classes for tool types
-
- Resolved
-
- links to
Code changed in jenkins
User: Andrew Bayer
Path:
pom.xml
src/main/java/org/jenkinsci/plugins/workflow/cps/DSL.java
src/main/java/org/jenkinsci/plugins/workflow/cps/Snippetizer.java
src/test/java/org/jenkinsci/plugins/workflow/testMetaStep/StateMetaStep.java
http://jenkins-ci.org/commit/workflow-cps-plugin/db985aa51f8787f080f2814996ba4c861a5e8ed0
Log:
Merge pull request #43 from abayer/jenkins-37403
JENKINS-37403- downstream change to use SymbolLookup.getSymbolValue(…)Compare: https://github.com/jenkinsci/workflow-cps-plugin/compare/f06a64ffdce5...db985aa51f87