Optimize a Jenkins Pipeline with AWS Codebuild

Preconditions

Goal

Solutions

Jenkinsfiles and buildspecs are in this folder

Following steps were done to build big artifacts (maven multiproject) outside of jenkins

6. Create jenkinsfile whith following functionality:

With this approach we managed to reduce the runtime to 5 mins.

Build and push docker image from angular app and java ms to different aws accounts

We next challenge we had was to build and angular application on top of a java microservice, create a docker image and push it to different environments. This jobs was running around 25 mins in jenkins.

We did the following steps to build the docker images outside of jenkins:

6. Create jenkinsfile whith following functionality:

With this approach we managed to reduce the runtime to 5 mins.

If you liked this post, please follow me. I would be very grateful ;)

Dog Father, Software Ninja and Climber