run: sudo apt-get install openjdk-8-jdk Next the steps for each job is defined as follows: executor: > Also, there is another variable called e, which allow me to specify different executors (aka Docker images) for each job, if needed. In this case I have set up this ones to know when JDK is required for the job, maven or python. In the build section, you can specify as many parameters as you need. Trigger-workflows as I mentioned previously, its the main job. Now, we need to define the jobs section, it looks somehing like this: jobs:Ĭommand: chmod +x. executors is used to run a Docker image in each job, it is possible to have multiple executors and use any of them as required for each service. Here we are defining two services, and the main job that will trigger the services as needed. # This parameter is used to trigger the main workflow The beggining of our circleci config file looks something like this: version: 2.1 Lastly, the orchestrator in charge of launching the actual jobs it’s the trigger-workflows job, which calls a bash script to call the circleci API and launch only the jobs for the project/services that actually were affected by some commit. In the latter we would be able to configure the particularities of each individual project/service. Basically, each project/service have to be added as both a pipeline parameter to the circleci config and as workflows. The basic behavior behind this configuration can be found in the how it works section of the repo. Lets start.įirst of all, I started working from this example on how to configure circleci for monorepos and started to adapt it for our use case. And as a consequence here is this post, which is one of the task I’ve been doing last days. Since then a lot of things have happened, one of the more important ones is that I moved to Germany to work for MOIA GMBH as Data Engineer. It’s been a very long time since I last wrote on the blog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |