What is "lightweight checkout" in pipeline-from-SCM jobs?
IntermediateConceptMultibranch, organization folders & webhooks
Answer
To read the Jenkinsfile, Jenkins can fetch just that one file via the SCM API (GitHub contents API, git archive) instead of cloning the whole repo onto the controller. It is faster and keeps the controller clean. If unsupported (for example, parameters like ${BRANCH} in the branch spec), you see Lightweight checkout support not available, falling back to full checkout. and a full clone happens in the controller's workspace@script directory.
More on Multibranch, organization folders & webhooks
How does a multibranch pipeline work?BeginnerWhat is branch indexing and what triggers it?BeginnerWhat are the discovery traits in the GitHub branch source?IntermediateWhat does the fork PR trust setting protect against?AdvancedWhat environment variables are set for PR builds?BeginnerWhat is an organization folder?Intermediate