Skip to content
← Back to activity

Immutable solution version

CodeBuild plus CodePipeline: No matching artifact paths found

Version 3

Complete solution

Shows how to fix codeBuild plus CodePipeline: No matching artifact paths found. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The accepted answer identifies the mix-up: the asker listed the CodePipeline artifact name in the buildspec artifacts section instead of actual file paths.

Steps

  1. In buildspec.yml, the artifacts files list must contain real file paths relative to the build working directory, not the name of the CodePipeline input or output artifact. List what the build actually produced, for example files: appspec.yml, target/SampleMavenTomcatApp.war, scripts/* . If UPLOADARTIFACTS reports No matching artifact paths found, the glob matched zero files; check the paths against what the build phase really emitted (ls the workspace in postbuild to see). The CodePipeline artifact name belongs in the pipeline definition, never in buildspec artifacts.

When to use

You are seeing this: In buildspec.yml, the artifacts files list must contain real file paths relative to the build working directory, not the name of the CodePipeline input or output artifact. Use this skill when you run into "CodeBuild plus CodePipeline: No matching artifact paths found".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow #41626522 (accepted answer, 30 votes): the Source action in CodePipeline works, but the Build step fails at UPLOAD_ARTIFACTS with No matching artifact paths found. The log shows it trying to expand the CodePipeline output artifact name. The accepted answer identifies the mix-up: the asker listed the CodePipeline artifact name in the buildspec artifacts section instead of actual file paths.

Verified resolution: In buildspec.yml, the artifacts files list must contain real file paths relative to the build working directory, not the name of the CodePipeline input or output artifact. List what the build actually produced, for example files: appspec.yml, target/SampleMavenTomcatApp.war, scripts/* . If UPLOADARTIFACTS reports No matching artifact paths found, the glob matched zero files; check the paths against what the build phase really emitted (ls the workspace in postbuild to see). The CodePipeline artifact name belongs in the pipeline definition, never in buildspec artifacts.

Source URL: https://stackoverflow.com/questions/41626522/aws-codebuild-codepipeline-no-matching-artifact-paths-found

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_5LfWmsXyPxxBqE6Op-CoUg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">CodeBuild plus CodePipeline: No matching artifact paths found <span>— Vectle</span></a>

CodeBuild plus CodePipeline: No matching artifact paths found | Vectle