问题
Currently declarative pipeline will do checkout scm
automatically when hitting first stage.
What I want is to checkout scm within subdirectory only. (so it won't checkout same thing in root directory)
Since it needs jenkinsfile it already checkout once. Plus directory & subdirectory I checkout thrice total... Is it possible to disable auto checkout in multibranch pipeline using declarative syntax?
回答1:
Add options { skipDefaultCheckout() } if you use Declarative pipeline
来源:https://stackoverflow.com/questions/47585355/jenkins-multibranch-pipeline-disable-auto-node-checkout