Search code examples
jenkinsjenkins-pipeline

Build multiple projects



I'm exploring the Jenkins world to see if it can fit my needs for this case. I need to build two git repositories (backend and frontend). For the backend, I would need:
  • Choose the branch we want to build from a list
  • Checkout the branch and build Docker image using the Dockerfile
  • push to ECR
  • release to a specific Kubernetes deployment

After backend build, we have to build the frontend by doing:

  • Choose the branch we want to build from a list
  • Checkout the branch and run npm script to build
  • deploy to S3 folder

Build of the project should be triggered only manually, by the project owner (who is not a developer )

Is Jenkins the right way to go? And if yes, could you point me to how you would do it? Thanks


Solution

  • Yes, you can definitely implement what you need with Jenkins. There are different ways to implement each step. But here are some things you can consider using.