A tool made in 1 day for the HMRC DDC Worthing hackathon (19-07-17) to automate the deployment process
- Triggers the necessary existing jenkins jobs in the correct sequence when they are ready, which will deploy to the dev, qa and staging environments.
- Uses the Jenkins API Client for java to interact with jenkins which can be found here: https://github.com/jenkinsci/java-client-api
- add credentials.properties to ~/.credentials/credentials.properties with your environment credentials
- Run 'DeployTool' with the list of arguments you wish to deploy, which should be your app name.
- This does not show you the console output for the jobs, you will still need to monitor the existing jobs on their own if you want to see what is happening.
- The tool does not wait for the deployment jobs themselves to complete, just triggers them once the depending jobs are complete.
- If a depending job is not successful i.e. create-a-release-slug, the tool will just hang.