Jenkins multibranch "Jenkinsfile not found" / no Jenkinsfile in CI
A multibranch or "Pipeline script from SCM" job reads the pipeline from a file in the repository. If that file is missing at the configured Script Path on a branch, Jenkins reports the Jenkinsfile as not found and does not build the branch.
What this error means
A branch is skipped in a multibranch scan with Jenkinsfile not found, or a Pipeline-from-SCM build fails because the script path does not resolve.
Jenkins console
Checking out git repo ...
Obtained Jenkinsfile from <sha>
ERROR: /home/jenkins/workspace/app@script: Jenkinsfile not found
Finished: NOT_BUILTCommon causes
The Script Path is wrong or the file is absent
The job's Script Path (default Jenkinsfile) does not match where the file lives, or the branch genuinely has no Jenkinsfile.
The file exists only on some branches
In multibranch jobs, branches without a Jenkinsfile at the configured path are intentionally not built.
How to fix it
Align the Script Path with the repo
- Confirm the file path in the repository for the affected branch.
- Set the job's "Script Path" to that exact path (for example
ci/Jenkinsfile). - Add the Jenkinsfile to branches that should build, or accept that branches without it are skipped.
Job configuration
# Job config -> Pipeline -> Script Path
ci/JenkinsfileHow to prevent it
- Keep a consistent Script Path across branches.
- Add the Jenkinsfile to long-lived branches that must be built.
- Document that branches without the script are intentionally skipped.
Related guides
Jenkins "Stage skipped due to when conditional" in CIUnderstand and fix Jenkins "Stage ‘X’ skipped due to when conditional" - a Declarative `when {}` evaluated fa…
Jenkins git "Couldn't find any revision to build" in CIFix Jenkins "ERROR: Couldn't find any revision to build. Verify the repository and branch configuration" - th…
Jenkins git checkout "Authentication failed" over HTTPS in CIFix Jenkins git checkout "fatal: Authentication failed for 'https://...'" - the HTTPS credentials are missing…