How to only build one directory in a Jenkins multi-branch pipeline job?

后端 未结 3 2084
南方客
南方客 2020-12-31 11:09

I have a github repo called multibranch-test with two sub-directories Project1, Project2.

PS C:\\Repos\\multibranch-test> tree . Folder PATH listing for vol

3条回答
  •  不知归路
    2020-12-31 11:58

    You could create a job for the whole repo, which looks at the changes the commits brought you and then trigger the corresponding Jenkinsfile of project 1 or 2 or both

提交回复
热议问题