Kick off deployment from Jenkins
I have a Jenkins pipeline which has 3 jobs. The first job builds the code and pushes the code to a location where puppet is configured to look for any file updates. However after this job I need to kick off puppet, the master is added as node for Jenkins. It updates the latest modules from git. How can I say or use a method to say my code has been pushed to the environment, then only trigger the next job. Googled a lot, but I'm not able to determine how to invoke a script that can give me this information by running on the Master.