Skip to content

ci: copy artifacts from all module target folders for Kokoro attestation#406

Merged
taeold merged 1 commit into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-build-artifacts-copy
Jul 13, 2026
Merged

ci: copy artifacts from all module target folders for Kokoro attestation#406
taeold merged 1 commit into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-build-artifacts-copy

Conversation

@AnshulPatni

@AnshulPatni AnshulPatni commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

During multi-module CI validation builds (invoker), Kokoro attestation generation failed post-build:
failed precondition no artifacts found for fileset artifacts, which is required;AppErrorCode=9

While mvn clean deploy completed successfully (BUILD SUCCESS), .kokoro/build.sh used find target/ -maxdepth 1 to copy built artifacts into ${REPO_DIR}/artifacts/ for attestation. In multi-module projects like invoker, built .jar and .pom files reside inside nested subdirectories (core/target/, conformance/target/, testfunction/target/), causing find target/ -maxdepth 1 to return empty results.

By updating .kokoro/build.sh to search across all nested target/ directories while explicitly excluding unit test artifacts (! -path "*/test-classes/*" ! -name "*-tests.jar"), all built production deliverables across single-module and multi-module packages are cleanly captured for Kokoro attestation.

Change-Id: I7321b06641ac0ed845113385005d5e8808a182ed
@taeold taeold merged commit e62ae74 into GoogleCloudPlatform:main Jul 13, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants