User Activity

I have designed custom workflow that send GET request to Jenkins at multiple stage. how can i stop the execution of rest workflow if there is error at previous stage. #workflow #flow
Helpfuls given to