To activate the allure plugin in Bamboo using bamboo specs code written in Java, follow these steps:
withParseTestResults
method.Here's an example of how to configure the allure plugin in a Bamboo specs code written in Java:
Plan plan = new Plan(createProject("MyProject"), "MyPlan", "My Description");
Job job = plan.addJob("MyJob", "my-agent");
TaskConfiguration taskConfiguration = new TaskConfiguration();
taskConfiguration.withWorkingDirectory("src/test/java");
taskConfiguration.withExecutable(new MavenExecutable().commandLine("clean", "test"));
taskConfiguration.withParseTestResults(new AllureTestResultParser());
job.addTask(new MavenTask(taskConfiguration));
In this example, we're creating a plan and adding a job that will run a Maven test task. The task configuration includes the withParseTestResults
method, which specifies the allure plugin as the test result parser.
Once the plan is saved and run, the allure report will be generated and available in the Bamboo build artifacts.
Asked: 2023-06-25 20:24:45 +0000
Seen: 10 times
Last updated: Jun 25 '23