In the configuration of your task B, check the Trigger assemblies box remotely (for example, from scripts) and set the token.
The help text displays a URL that you can call to start the assembly from remote scripts (for example, from the shell script in the Hudson A task).
However, this will start task B regardless of the result of A. Morechilli's answer is probably the best solution.
source share