Class OpenShiftGlobalVariable

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    public class OpenShiftGlobalVariable
    extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
    Defines the "openshift" global variable in pipeline DSL scripts. It's attributes are defined by the content of resources/com/openshift/jenkins/plugins/OpenShiftGlobalVariable.groovy
    • Constructor Detail

      • OpenShiftGlobalVariable

        public OpenShiftGlobalVariable()
    • Method Detail

      • getName

        @Nonnull
        public String getName()
        Specified by:
        getName in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
      • getValue

        @Nonnull
        public Object getValue​(@Nonnull
                               org.jenkinsci.plugins.workflow.cps.CpsScript script)
                        throws Exception
        Specified by:
        getValue in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
        Throws:
        Exception