GitLab: "No files to upload" in a job log
No files to upload appears in a job log when the runner cannot find the file it is meant to upload as an artifact. Either the path to the file is incorrect, or the file was never created (GitLab docs: job artifacts troubleshooting, checked November 19, 2026).
What to do
- Read the rest of the log. Look above the message for other errors or warnings that name the file and say why it was not generated, such as a build step that failed quietly.
- Check the path in
artifacts:pathsagainst where the job really writes the file. - Turn on debug logging and run the job again. The extra output can show why the file was not created. Debug logging is set by the
CI_DEBUG_TRACEvariable, and GitLab restricts who can read such logs; see the job log is refused.
To see the failed job and its log in the IDE: Pipelines and Jobs Inbox for GitLab CI, a plugin for JetBrains IDEs, shows next to a failed job its status, how long it ran and the message GitLab gives for the failure, and opens the job's log in a console viewer at the bottom of the IDE.
Related artifact messages from the same page
- A job does not get all artifacts: jobs with
dependenciesorneedsfetch artifacts only from a subset of jobs. See could not retrieve the needed artifacts. - Artifacts do not expire: if Keep artifacts from most recent successful jobs is on, the artifacts of the latest completed pipeline and the latest successful one (if different) on each ref do not expire.
FATAL: invalid argumentwhen uploading a dotenv artifact on a Windows runner has its own entry in GitLab's page.
GitLab pipelines in IntelliJ IDEA
Pipelines and Jobs Inbox for GitLab CI, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a failed job with its status, how long it ran and the message GitLab gives for the failure, and opens the job's log in a console viewer at the bottom of the IDE, searchable, following a running job as it writes. You can retry the job from the IDE (Pro). Reading is free; retrying, cancelling and running are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.
More: GitLab "could not retrieve the needed artifacts" · GitLab job log refused or empty · GitLab "This job does not have a trace." after 18.0 · GitLab job dropped as stuck or over its timeout