Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Multiple SCM - All SCM's triggering build

I have a Jenkins job that includes an Android app and a common library. I use Jenkins' Multiple SCM plugin to download both git repos and then build and run.

The common library gets updated more frequently than the app, and sometimes these updates break compatibility with the App. When the App gets updated and committed, its generally guaranteed to have fixed any incompatibilities against the latest library version.

The jenkins job should trigger only for commits to the App. Under the common lib SCM, I have added "Don't trigger a build on commit notifications" as well as "Polling ignores commits from certain users" excluding "*".

However, this job still gets run when commits happen to the lib, resulting in a lot of broken build notifications. What am I doing wrong?

Thanks.

like image 933
FishStix Avatar asked Feb 27 '15 21:02

FishStix


1 Answers

under SCM 'Advanced clone behaviors', select 'Polling ignores commits in certain paths' and set 'Excluded Regions' to '.*'

like image 175
Reck Avatar answered Oct 10 '22 15:10

Reck