Member-only story
A Jenkins job to push repo contents to an S3 bucket after a merge
Jenkins, one of the most popular open-source CI/CD tools provides you an easy, powerful interface to configure your project workflow. With few clicks and configurations, you are able to create a Jenkins job that could fetch code from Github on various events (PR, Merge, Commit), compile those (build), push or deploy them to any destination entity (S3, Server).
Let's create a simple scenario with a Jenkins job. For that, click on the “New item” in Jenkins to create a new job and then give an appropriate name for the job.
Then select the “Freestyle project” and then click “Ok”.
Then configure your job as follows:
Under general settings, tick the “GitHub project” to indicate that this is a GitHub hosted project and then enter the git project URL without the tree/master or tree/branch part.
Then under Source Code Management Section tick “Git” to tell Jenkins that the version control system of this…