- Fork this repository: https://github.com/stoenpav/spring-with-maven - 5
- Create a new Pipeline Job in Jenkins - 5
- Write a declarative pipeline inside which:
- Runs on a static slave - 5
- Uses the appropriate tools - 7
- Create a stage to clone the repository - 5
- Create a stage to Build the application using mvn clean install - 7
- Create a stage to Test the application using mvn test - 7
- Create a stage which builds and tags a docker image - 6
- Create a stage which pushes the docker image - 6
- Create a stage which deploys the docker image - 7
- Create a post block which cleans the workspace after the pipeline finishes - 5
- Store the pipeline in a Jenkinsfile and push it to your forked repo - 5
- Create an integration between Jenkins and Github and add the appropriate block in the Jenkinsfile in order to work - 10
Upon completion send me, in slack, your repository with the Jenkinsfile and a proof that you have a working integration by going to the Polling Log and screenshot of the first two lines like:
Started on May 23, 2023, 1:43:22 PM Started by event from 172.17.0.4 ⇒ http://localhost:8080/github-webhook/ on Tue May 23 13:43:22 UTC 2023
You have 1 hour. ChatGPT is forbidden, Google is not. Good Luck ! :)