use of org.jenkinsci.test.acceptance.po.WorkflowJob in project acceptance-test-harness by jenkinsci.
the class AnalysisCollectorPluginTest method createPipeline.
@Override
protected WorkflowJob createPipeline() {
WorkflowJob job = jenkins.jobs.create(WorkflowJob.class);
job.script.set("node {\n" + copyFileToWorkspace(job, "findbugs.xml") + " step([$class: 'FindBugsPublisher', pattern: '**/findbugs.xml'])\n" + copyFileToWorkspace(job, "pmd.xml") + " step([$class: 'PmdPublisher'])\n" + copyFileToWorkspace(job, "checkstyle-result.xml") + " step([$class: 'CheckStylePublisher'])\n" + copyFileToWorkspace(job, "Tasks.java") + copyFileToWorkspace(job, "Tasks2.java") + " step([$class: 'TasksPublisher', high: 'PRIO1', normal: 'PRIO2,TODO', low :'PRIO3'])\n" + copyFileToWorkspace(job, "warnings.txt") + " step([$class: 'WarningsPublisher', " + " parserConfigurations: [" + " [parserName: 'Java Compiler (javac)', pattern: '**/warnings.txt']," + " [parserName: 'JavaDoc Tool', pattern: '**/warnings.txt']," + " [parserName: 'MSBuild', pattern: '**/warnings.txt']" + " ]])\n" + " step([$class: 'AnalysisPublisher'])\n}");
job.sandbox.check();
job.save();
return job;
}
Aggregations