Class AnchoreAction

  • All Implemented Interfaces:
    Action, ModelObject, SimpleBuildStep.LastBuildAction

    public class AnchoreAction
    extends Object
    implements SimpleBuildStep.LastBuildAction
    Anchore plugin results for a given build are stored and subsequently retrieved from an instance of this class. Rendering/display of the results is defined in the appropriate index and summary jelly files. This Jenkins Action is associated with a build (and not the project which is one level up)
    • Constructor Detail

      • AnchoreAction

        public AnchoreAction​(Run<?,​?> build,
                             String gateStatus,
                             String jenkinsOutputDirName,
                             String gateReport,
                             Map<String,​String> queryReports,
                             String gateSummary,
                             String cveListingFileName,
                             int stopActionCount,
                             int warnActionCount,
                             int goActionCount)
    • Method Detail

      • getBuild

        public Run<?,​?> getBuild()
      • getGateStatus

        public String getGateStatus()
      • getGateOutputUrl

        public String getGateOutputUrl()
      • getGateSummary

        public net.sf.json.JSONObject getGateSummary()
      • getCveListingUrl

        public String getCveListingUrl()
      • getGateReportUrl

        public String getGateReportUrl()
      • getGoActionCount

        public int getGoActionCount()
      • getStopActionCount

        public int getStopActionCount()
      • getWarnActionCount

        public int getWarnActionCount()
      • getPreviousResult

        public AnchoreAction getPreviousResult()
        Gets the Anchore result of the previous build, if it's recorded, or null.
        Returns:
        the previous AnchoreAction