I have two separate Jobs in Jenkins, but one job is only allowed to run if another jobs' last state was successful.
Please note: I do not want to automatically trigger the job; both jobs are triggered manually.
How can I achieve this?
note: I am using Jenkins declarative pipeline syntax.