Class XygeniConfiguration

  • All Implemented Interfaces:
    ExtensionPoint, Describable<GlobalConfiguration>, Saveable, OnMaster

    @Extension
    public class XygeniConfiguration
    extends GlobalConfiguration
    Global configuration of Xygeni Plugin.

    Xygeni Plugin require Xygeni Api url (use cloud production by default), and a Xygeni Api Token generate by customer administrator to connect to Xygeni api.

    Xygeni Api Token should be saved as credential secret at Jenkins instance and pass here as secret-id.

    Author:
    Victor de la Rosa
    • Constructor Detail

      • XygeniConfiguration

        public XygeniConfiguration()
    • Method Detail

      • getVersion

        public String getVersion()
      • getXygeniTokenSecretId

        public String getXygeniTokenSecretId()
        Returns:
        the currently field value, if any
      • setXygeniTokenSecretId

        @DataBoundSetter
        public void setXygeniTokenSecretId​(String xygeniTokenSecret)
        Together with getXygeniTokenSecretId(), binds to entry in config.jelly.
        Parameters:
        xygeniTokenSecret - the new value of this field
      • getXygeniUrl

        public String getXygeniUrl()
        Returns:
        the currently configured label, if any
      • setXygeniUrl

        @DataBoundSetter
        public void setXygeniUrl​(String xygeniUrl)
        Together with getXygeniUrl(), binds to entry in config.jelly.
        Parameters:
        xygeniUrl - the new value of this field
      • doCheckXygeniToken

        public FormValidation doCheckXygeniToken​(@QueryParameter
                                                 String value)
        Check if field is not empty
        Parameters:
        value - form field value
        Returns:
        FormValidation ok if not empty or warning message
      • doCheckXygeniUrl

        public FormValidation doCheckXygeniUrl​(@QueryParameter
                                               String value)
        Check if field is not empty
        Parameters:
        value - form field value
        Returns:
        FormValidation ok if not empty or warning message
      • doTestXygeniConnection

        public FormValidation doTestXygeniConnection​(@QueryParameter("xygeniTokenSecretId")
                                                     String xygeniTokenSecretIdField,
                                                     @QueryParameter("xygeniUrl")
                                                     String xygeniUrlField)
        Check if current configuration allow to connect to Xygeni platform.
        Parameters:
        xygeniTokenSecretIdField - tokenSecret field value
        xygeniUrlField - xygeniurl field value
        Returns:
        FormValidation ok if connect could be establish and token is valid
      • getXygeniToken

        public Secret getXygeniToken()
        Read token from credential and return a Secret
        Returns:
        a Secret
      • isEmitConfigEvents

        public boolean isEmitConfigEvents()
      • isEmitComputerEvents

        public boolean isEmitComputerEvents()
      • isEmitItemEvents

        public boolean isEmitItemEvents()
      • isEmitBuildEvents

        public boolean isEmitBuildEvents()
      • isEmitScmEvents

        public boolean isEmitScmEvents()