Status: Closed (View Workflow)
Resolution: Not A Defect
A pipeline job (scripted syntax), which is not a multibranch job, is configured to fetch its Jenkinsfile from gitlab (not gitlab.com, but a company owned gitlab instance).
The checkout is not lightweight, i.e. the tick "Lightweight checkout" in the job configuration is not set.
There is one job parameter of type node configured.
When starting the job the git checkout of the Jenkinsfile fails with (anonymized)
The Jenkinsfile did not start at all since Jenkins failed to check it out.
The issue does not occur if
- the node selected by the node parameter is master (if master has been made available as "Possible node"),
- or "Lightweight Checkout" has been selected,
- or the job doesn't have a node parameter configured.
The Jenkinsfile may or may not refer to the node parameter. Even if the node parameter isn't mentioned anywhere in the Jenkinsfile the issue occurs.
Questions placed at Google Groups
But didn't get an answer.