everyone! Sorry if the question is stupid, I'm just learning how to deal with Jenkins :) For the testing task I'm doing I need to start server, start Tomcat, then perform some actions, after which I need to stop tomcat and server from running to continue with another task. Otherwise, they run forever. That's why I need to kill build job from the same pipeline that started it. Can anyone advise how can I do this?
parallel ("Start tomcat" : {
sleep(10)
build job: 'tomcat_master'