Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

DeploymentTimingPoints.ExecutionCancelled event not fired

Edited

Hi,

 

I am trying to develop a Bamboo plugin. I am using Bamboo 6.8.0 build 60803 - 30 Jan 19.

This plugin needs to add functionality when stopping a deployment. In order to achieve this, I have created a listener, waiting for 'DeploymentTimingPoints.ExecutionCancelled' events.

However, this kind of events never arise.

I am able to catch other events, like: DeploymentTimingPoints.ExecutionStarted, DeploymentTimingPoints.ExecutionFinished.

Question: is bamboo actually firing 'DeploymentTimingPoints.ExecutionCancelled' when stopping a deployment?

Note: When stopping a deployment, I am receiving a process exception.

[INFO] [talledLocalContainer] 2019-05-02 15:13:48,306 INFO [http-nio-6990-exec-6] [DefaultStopBuildManager] Stopping deployment 3342337-3407873-3866627 on agent 131073
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,306 INFO [http-nio-6990-exec-6] [DefaultStopBuildManager] Deployment 3342337-3407873-3866627 will be checked for termination at Thu May 02 15:14:48 CEST 2019
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,307 INFO [http-nio-6990-exec-6] [DefaultBuildAgent] Cancel build request for '3342337-3407873-3866627' received on agent 'Default Agent'.
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,307 INFO [http-nio-6990-exec-6] [DefaultBuildAgent] Interrupting task com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask@40215ab2.
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,308 WARN [18-BAM::Default Agent::Agent:pool-33-thread-1] [LatchedRunnable] Interrupted waiting for ExternalProcess pump to complete
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,308 WARN [18-BAM::Default Agent::Agent:pool-33-thread-1] [LatchedRunnable] Interrupted waiting for ExternalProcess pump to complete
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,313 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [TaskResultBuilder] 3342337-3407873-3866627: Failing task since return code of [/home/repositories/plugin-test/target/bamboo/home/temp/3342337-3407873-3866627-ScriptBuildTask-8834092675444552255.sh] was 143 while expected 0
[INFO] [talledLocalContainer] 2019-05-02 15:13:48,313 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [TaskResultBuilder] Process exception:
[INFO] [talledLocalContainer] com.atlassian.utils.process.ProcessException: Interrupted while waiting for process to finish
[INFO] [talledLocalContainer] at com.atlassian.utils.process.ExternalProcessImpl.handleProcessInterrupted(ExternalProcessImpl.java:500)
[INFO] [talledLocalContainer] at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:156)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:200)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:210)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:48)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.plugins.script.task.ScriptBuildTask.execute(ScriptBuildTask.java:68)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:203)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:175)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
[INFO] [talledLocalContainer] at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:748)

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events