3

I want jenkins to stop build before starting SCM checkout step based on a condition. Is there any way to achieve this by any plugin or tricks?

And if possible I want that step to run on Jenkins master instead of slaves.

Sridhar
  • 803
  • 1
  • 12
  • 21
  • Please elaborate: what is the current trigger for building this job and why do you want to skip it? – Gonen Feb 15 '14 at 09:25
  • What is the condition that you want to check before scm chrckout/update? What is the Scm tool ? – Dipu H Feb 15 '14 at 09:35
  • We are using gerrit+Jenkins using gerritTrigger plugin. We don't want to run build for every commit developer push to gerrit. Instead it has to go through few validations and it should start clone only if the changes passes all validations. Sine gerrit has DB and we can run some gerrit commands to validate that we don't really need to have a git workspace. It will reduce the usage of resources a lot. I have seen "prescmstep" plugin, but it does nothing. – Sridhar Feb 20 '14 at 02:20
  • I am able to achieve this using strategy mentioned in http://stackoverflow.com/questions/10275582/jenkins-skip-scm-on-parameter?rq=1 – Sridhar Feb 24 '14 at 20:09

0 Answers0