Class SCLMSCM.SCLMSCMDescriptor

  • All Implemented Interfaces:
    Saveable, OnMaster
    Enclosing class:
    SCLMSCM

    @Extension
    public static final class SCLMSCM.SCLMSCMDescriptor
    extends SCMDescriptor<SCLMSCM>

    SCLMSCMDescriptor

    Descriptor for SCLMSCM.
    Version:
    1.0
    Author:
    Alexander Shcherbakov (candiduslynx@gmail.com)
    • Constructor Detail

      • SCLMSCMDescriptor

        public SCLMSCMDescriptor()
        Dummy constructor.
    • Method Detail

      • getSCLMJobHeader

        public String getSCLMJobHeader()
        Get globally configured job header.
        Returns:
        SCLMJobHeader.
      • getSCLMJobStep

        public String getSCLMJobStep()
        Get globally configured FLMCMD job step.
        Returns:
        SCLMJobStep.
      • doFillCredentialsIdItems

        public ListBoxModel doFillCredentialsIdItems​(@AncestorInPath
                                                     Item item,
                                                     @QueryParameter
                                                     String credentialsId)
        Fill in credentials IDs.
        Parameters:
        item - parent
        credentialsId - credentials ID
        Returns:
        filled in credentials IDs
      • doCheckCredentialsId

        public FormValidation doCheckCredentialsId​(@AncestorInPath
                                                   Item item,
                                                   @QueryParameter
                                                   String value)
        Parameters:
        item - configuration entity to use permissions from.
        value - Current credentials (or expression/env variable).
        Returns:
        Whether creds are OK. Currently just check that it's set.
      • configure

        public boolean configure​(org.kohsuke.stapler.StaplerRequest req,
                                 net.sf.json.JSONObject json)
        Configure action that is invoked from global settings.
        Overrides:
        configure in class Descriptor<SCM>
        Parameters:
        req - Request.
        json - Parameters.
        Returns:
        Whether everything was setup OK.