What Is a Monorepo?

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 8

  • @vinaynaiduk1947
    @vinaynaiduk1947 2 ปีที่แล้ว

    This is very helpful, instead of having jenkinsfile in all the sub modules,we now can have one at root directory of monorepo.

  • @maxx27i
    @maxx27i 2 ปีที่แล้ว

    Excellent video! Thank you! 👏

  • @toenytv7946
    @toenytv7946 3 ปีที่แล้ว

    Great overview. Thank you

  • @siRE1337
    @siRE1337 2 ปีที่แล้ว +1

    Isn't this a huge drawback in build time when you have large projects in your monorepo and you're only using one build pipeline? For example I could just create 2 jobs in Jenkins with sparse checkouts on the git repo to frontend and another one to backend. With this solution they'll be run in parallel. Just 1 job for the whole monorepo would take ages to complete.

    • @sau002
      @sau002 2 ปีที่แล้ว

      Such a large pipeline is not sustainable. Azure Devops/Git would it in a different way and a much more managrable way (trigger, pr elements in YML)

  • @sau002
    @sau002 2 ปีที่แล้ว

    If we follow the suggestion presented in this video, we are either going to end up with a large Jenkinsfile, or use libraries - a level of complexity one way or the other.
    Please consider my suggestion:
    Why not create two Multi-Branch pipelines where the "" is configured to that sub-repo respectively. E.g. *Multi Branch pipeline 1* has ScriptPath= root/Project001 and *Multi Branch pipeline 2* has ScriptPath= root/Project001 .
    The clause on the changeset gets applied within the 2 Jenkinsfile - at a top level stage element
    ```
    pipeline {
    agent any
    stages{
    stage('This is Project002'){
    when{
    beforeAgent true
    anyOf{
    //Need the triggerred by clause so that I can kick off a build using the portal
    triggeredBy cause: 'UserIdCause'
    changeset "**/Project002/**"
    }
    }
    stages {
    stage('Build') {
    steps {
    echo 'Building project 002 with nested stages..'
    }
    }
    -
    -
    -
    ```
    Do you see any concerns?

  • @abdelkalekguedri7328
    @abdelkalekguedri7328 ปีที่แล้ว

    ‘Jenkins’ doesn’t have label ‘lunix’

  • @shashwatmehta9733
    @shashwatmehta9733 2 ปีที่แล้ว +4

    What I expected - what is a monorepo? How is it different from polyrepo?
    What this video presents - how to use jenkins on monorepo.
    Please fix title.