Legacy Knowledge Base
Published Jun. 30, 2025

Jenkins build failed with exception of "no artifacts found that match the file pattern build"

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Jenkins builds are failing with the below errors for all the branches (in all environments)
    Found LiferayCloudProject_v2_0_0 
    Visiting the following service directories:
    BUILD each service in service root directory: /var/jenkins_home/workspace/
    COPY service files to services build path: /var/jenkins_home/workspace/build
    Successfully visited services
    Stashed 0 file(s)
    Archiving build/**
    Archiving artifacts
    ‘build/**’ doesn’t match anything, but ‘**’ does. Perhaps that’s what you mean?
    No artifacts found that match the file pattern "build/**". Configuration error?

Environment

  • Liferay PaaS

Resolution

  • These errors or behaviors can be observed when the issue is caused by Jenkins being unable to pull the code from GitHub. One possible reason for this could be the expiration of the token

  • In this scenario, the token can be verified, and generate a new one if needed. 

  • If the token is valid and the error persist, please check the value of the rest of the infra enviroment variables, because some of them may be incorrect:
    https://learn.liferay.com/w//liferay-cloud/platform-services/continuous-integration#environment-variables-reference

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base