This message was deleted.
# community-support
s
This message was deleted.
v
Maybe using
onlyIf
checking whether
B
is in the task graph. But I'm not sure whether this will be configuration cache safe
t
I am not using configuration cache right now (I had some issues with it). So I will give it a try. Thanks.
👌 1
By the way, is there any other way how to execute a task after some other task regardless its result besides
finalizedBy
?
v
I don't think so
t
Thanks.
t
In this specific case, wouldn't a
B.dependsOn(A)
and
A.mustRunAfter(test)
be enough?
v
Hm, also a good point in case
A
can be run before
B
t
mustRunAfter
doesn't force
A
to run if
test
fails. And I need
A
to always execute its action regardless `test`'s result.
v
Yeah, right, build would fail after
test
failed. You would then additionally use
--continue
t
I do not want
A
to fail. It does some stuff with junit xml reports. And I do not want the entire build to continue if test fails.
v
Sorry, meant after "`test`" failed of course
t
Will look at it tomorrow. Thanks for now.
👌 1
That did the trick! Thank @Thomas Broyer and @Vampire.
👌 1