Hello Jenkins community,
I am currently working on a plugin that would provide a button to
"immediately" start a job.(I schedule it, sort the queue to put it on top,
then if no executors are available, I take the first "not started by a
human" build, I interrupt it, and then re schedule it for later)
https://github.com/Terracotta-OSS/accelerated-build-now-plugin

My question is :
When I interrupt an executor, using :

          executor.interrupt(Result.ABORTED);
or :
          executor.interrupt(Result.NOT_BUILT);

the build will get aborted, but the post steps, and post actions will NOT
get executed.

But, if I use :
          executor.interrupt(Result.FAILED);

those post steps and post actions will get executed.

Do you know if it is possible to still get post steps/ post actions
executed after interrupting an executor ? (I don't want people to think the
build failed when I only aborted it; and I still want those post actions to
be executed, to clean the workspace & all)

Thanks for your suggestions !
Anthony

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to