Another option is to use the Jenkins Workflow plugin (according to the jenkins-workflow tag for the question), which is designed for this kind of more complex system. You will write something like (from the top of your head):
build job: 'A', wait: true mail to: ' user@ …', subject: "Please approve #${env.BUILD_NUMBER}", body: """ See ${env.BUILD_URL}input/ """ input submitter: 'userId', message: 'Ready?' build job: 'B', wait: true
Later, the build steps can be replaced with actual build tasks by putting these freestyle tasks into action.
Jesse glick
source share