-
Improvement
-
Resolution: Fixed
-
Minor
-
None
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.
- 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:
plugin/src/main/java/org/jenkinsci/plugins/structs/SymbolLookup.java
plugin/src/test/java/org/jenkinsci/plugins/structs/SymbolLookupTest.java
http://jenkins-ci.org/commit/structs-plugin/bc43d9ad717be5beaf70e2678be58d0a63ebcb34
Log:
[FIXED JENKINS-37403] Add static methods for fetching Symbol values.
Both from Objects and from Classes.