Git Plugin :: how to conditional check to pull code or not on job run

4 views
Skip to first unread message

Pooja Shah

unread,
Sep 20, 2016, 3:26:21 AM9/20/16
to Jenkins Users
Hi Team,

Is there any way to control "git pull" or not pull using build parameters or some conditional checks for a job.
I have a job in which I want to git pull only some of the times, basically at will I want to avoid pulling ( if it was related to commit message etc I could do from advance settings of git plugin like mentioned here https://github.com/jenkinsci/git-plugin/pull/49 but I want to control it from build parameter )
1 way I think is, I can introduce a build step where I read the passed build parameter & control git pull my own native way rather than using the Git plugin(under source code management). Is there any better elegant way with Git Plugin itself?


Thanks,
pooja


Reply all
Reply to author
Forward
0 new messages