admin管理员组文章数量:1356904
I have a bamboo plan that does the following
- Deploys test sources to oracle
- Executes
FOO.BEFORE_ALL
proc - Executes database tests in various stages and jobs
- Executes
FOO.AFTER_ALL
proc in a final stage
This works fine for normal bamboo execution but doesn't work how I'd like in re-run scenarios.
Since FOO.AFTER_ALL
is executed in a final stage it executes regardless of pass/fail of previous stages/jobs.
Is there any way to force FOO.BEFORE_ALL
to be run in re-run scenarios?
The default bamboo behavior for re-runs is to start at the first failed job which is after my BEFOREALL job. Is there any way to force this job to run in re-run scenario?
Sample Bamboo plan java
private Plan createPlan() {
return new Plan(project(), "Plan Name", "PLANKEY")
.stages(
new Stage("Deploy").jobs(new MyDeployJob()),
new Stage("Setup").jobs(
new Job("Before All", "BEFOREALL")
.tasks(new SqlTask().inlineBody("FOO.BEFORE_ALL;"))
),
new Stage("Unit Tests").jobs(
new PlSqlTestJob("FOO.UNIT_TESTS_1"),
new PlSqlTestJob("FOO.UNIT_TESTS_2"),
new PlSqlTestJob("FOO.UNIT_TESTS_3")
),
new Stage("Integration Tests").jobs(
new PlSqlTestJob("FOO.INTEG_TESTS_1"),
new PlSqlTestJob("FOO.INTEG_TESTS_2"),
new PlSqlTestJob("FOO.INTEG_TESTS_3")
),
new Stage("Tear Down")
.finalStage(true)
.jobs(
new Job("After All", "AFTERALL")
.tasks(new SqlTask().inlineBody("FOO.AFTER_ALL;"))
)
)
);
}
本文标签: javaForce a bamboo task to execute in rerun scenarioStack Overflow
版权声明:本文标题:java - Force a bamboo task to execute in re-run scenario - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743953756a2567763.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论