Class BuildWorker
- java.lang.Object
-
- com.anchore.jenkins.plugins.anchore.BuildWorker
-
public class BuildWorker extends Object
A helper class to ensure concurrent jobs don't step on each other's toes. Anchore plugin instantiates a new instance of this class for each individual job i.e. invocation of perform(). Global and project configuration at the time of execution is loaded into worker instance via its constructor. That specific worker instance is responsible for the bulk of the plugin operations for a given job.
-
-
Constructor Summary
Constructors Constructor Description BuildWorker(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, BuildConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
runAnalyzer()
Util.GATE_ACTION
runGates()
void
runQueries()
void
setupBuildReports()
-
-
-
Constructor Detail
-
BuildWorker
public BuildWorker(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, BuildConfig config) throws AbortException
- Throws:
AbortException
-
-
Method Detail
-
runAnalyzer
public void runAnalyzer() throws AbortException
- Throws:
AbortException
-
runGates
public Util.GATE_ACTION runGates() throws AbortException
- Throws:
AbortException
-
runQueries
public void runQueries() throws AbortException
- Throws:
AbortException
-
setupBuildReports
public void setupBuildReports() throws AbortException
- Throws:
AbortException
-
cleanup
public void cleanup()
-
-