1.Fork Sample chef–repo project on git-
https://github.com/shephertz/chef-repo.git.
2.Copy the cookbooks, data_bags and roles folder from sample chef repo and place them inside the chef-repo/ folder of your chef starter kit on your workstation.
3.Update Chef Databags.
Go to Jenkins and run the SampleJob by clicking “Build now”.
Jenkins – Master & Slave
Go to the Console Output of the SampleJob run of previous step in Jenkins.
Jenkins – Master & Slave
Search for the text “Deploying Artifacts” and copy the war url from there :