我正在使用JMeter Gradle插件通过Jenkins执行测试。每当我的应用程序为几个示例抛出错误(例如500)时,构建都会因以下错误而失败
如何避免构建失败,因为我希望某些示例在测试过程中失败。
16:49:28 > Task :-performance:jmRun FAILED
16:49:28 :-performance:jmRun (Thread[Execution worker for ':' Thread 3,5,main]) completed. Took 30 mins 2.066 secs.
16:49:28
16:49:28 FAILURE: Build failed with an exception.
16:49:28
16:49:28 * What went wrong:
16:49:28 Execution failed for task ':-performance:jmRun'.
16:49:28 > There were test failures. See the jmeter logs for details.
16:49:28
16:49:28 * Try:
16:49:28 Run with --debug option to get more log output. Run with --scan to get full insights.
16:49:28
16:49:28 * Exception is:
16:49:28 org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':collibra-performance:jmRun'.
16:49:28 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:205)
16:49:28 at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
16:49:28 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:203)
16:49:28 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:184)
16:49:28 at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)