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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-25 20:24:45 +0000
Seen: 10 times
Last updated: Jun 25 '23
What are the typical approaches found in a Gradle build script?
What steps can be taken to increase the runtime of a debugger in NativeScript?
What is the method to show the dependencies in Java?
How can I incorporate BeanComparator into my gradle project?
What does the "Invalid source release 1.7" error mean when using gradle for compilation?