Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins poll scm option to ignore certain files changes

Forewarning: Its possible I don't understand how Jenkins works completely, and I am pretty novice in general, so please bear with me.

I'm working on a Jenkins build script for a project, and one aspect of the job is that it needs to poll scm nightly (using build triggers->Poll SCM) and then edit the "version" config file with an incremented build/version number then push that to the bitbucket repository. However, I don't want Jenkins to consider the version config file when polling the SCM for changes. As in, if the only change is a version update, ignore that and do not do the build-- otherwise it will always do builds nightly.

Thanks and if I am approaching this the completely wrong way please let me know!

like image 604
z0d14c Avatar asked Sep 23 '14 16:09

z0d14c


1 Answers

Under Additional Behaviors, you will find Polling ignores commits from certain users. List there all users that, if they are the commiters, the build will not be allowed to run.

like image 80
Lovato Avatar answered Nov 16 '22 03:11

Lovato