-
New Feature
-
Resolution: Unresolved
-
Minor
-
Jenkins ver. 2.7.4
It does not appear that org.jenkinsci.plugins.workflow.cps.GlobalVariable implementations can contribute many details to the GSDL.
I just get an entry like this:
>> property(name: 'openshift', type: 'com.openshift.jenkins.plugins.pipeline.OpenShiftGlobalVariable')
Since there is no way straightforward way for Jenkins to introspect all of the methods I'm exposing from my variable definition, it would be nice if I could contribute my own GDSL snippet from my plugin's resources directory.
Perhaps. But then you would also need to provide DSLD, etc. Generally I would discourage use of global variables as sub-DSLs as in the OpenShift example. Works better to have a set of decoupled steps.