Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you