Class ProgressBuilder

    • Field Detail

      • workspace

        protected FilePath workspace
    • Constructor Detail

      • ProgressBuilder

        public ProgressBuilder​(String credentialsId)
    • Method Detail

      • getUrl

        public String getUrl()
      • setUrl

        @DataBoundSetter
        public void setUrl​(String url)
      • setCredentialsId

        @DataBoundSetter
        public void setCredentialsId​(String credentialsId)
      • getCredentialsId

        public String getCredentialsId()
      • setApiVersion

        @DataBoundSetter
        public void setApiVersion​(String apiVersion)
      • getApiVersion

        public String getApiVersion()
      • getGlobalSNParams

        public net.sf.json.JSONObject getGlobalSNParams()
      • getClientFactory

        public RunFactory getClientFactory()
      • setClientFactory

        @Inject
        public void setClientFactory​(RunFactory clientFactory)
      • perform

        protected abstract boolean perform​(Run<?,​?> run,
                                           @NonNull
                                           TaskListener taskListener,
                                           Integer progressCheckInterval)
      • setupBuilderParameters

        protected void setupBuilderParameters​(EnvVars environment)
      • setupParametersAfterBuildStep

        protected List<ParameterValue> setupParametersAfterBuildStep()
      • buildErrorDetailFromFailedResponse

        protected String buildErrorDetailFromFailedResponse​(Result serviceNowResult)
      • getValue

        protected Object getValue​(Result result,
                                  String name)
        Get value from additional response attribute that was strictly not implemented by current structure of the response object.
        Parameters:
        result - Result returned by ServiceNow API and taken from the response object.
        name - Name of the attribute that should occur in the response
        Returns:
        Value of the attribute