Hi :wave: Here is my use case. I have three tasks ...
# community-support
d
Hi 👋 Here is my use case. I have three tasks
beforeDeploy
,
afterDeploy
and
deploy
.
deploy
dependsOn(
beforeDeploy
) and finalizedBy(
afterDeploy
). Both
beforeDeploy
and
afterDeploy
is of the same TaskClass just the
status
input will differ. Is it possible to set the input
status
of
afterDeploy
based on the execution status of the
deploy
task . For ex, if
deploy
task fails then
afterDeploy
task's
status
needs to be configured with
"failed"
. I don't know how to get this working or if this is even possible. TIA 🙏
v
You could for example use a shared build service that is also an operation completion listener. Then you can record in the service the outcome of the
deploy
task and read the value in the
afterDeploy
task.
d
Thank you. I am exploring the shared build services and figuring out how to get this working. Will reach out if I need further information 🙂
👌 1