Kick off deployment from Jenkins

asked 2014-09-30 12:39:05 -0500

ppraj gravatar image


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.

edit retag flag offensive close merge delete


Your question is not clear. Typically there is a jenkins job that updates the code on the master, then the successful completion of that job can trigger another job.

lavaman gravatar imagelavaman ( 2014-09-30 18:36:54 -0500 )edit

Basically, how to tell puppet to sync the latest code across

ppraj gravatar imageppraj ( 2014-09-30 21:06:34 -0500 )edit

It's still not clear what you mean. Puppet has an agent and a master. Are you trying to sync the code to the master, or to the machines that run it via the agent?

lavaman gravatar imagelavaman ( 2014-10-03 23:16:09 -0500 )edit