git - How to avoid checkout of sources on master node with jenkins pipeline -


i want define builds using jenkins 2 pipeline feature , want configuration loaded sources in jenkinsfile. don't want clutter master node workspace.

ideally, specify pipeline job meant run given node type doesn't seems possible.

i see 2 alternatives:

  • use dedicated repository jenkins job configuration stored.
  • use cleaver git checkout strategy (shallow + sparse).

did miss something? best practice ?

there's jenkins issue claims fixed, , jenkinsfile needs checked out on master: https://issues.jenkins-ci.org/browse/jenkins-33273

(it isn't working me @ moment though.)


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

c# - Json.Net Serialize String from URI -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -