Artifact build failure. The build for you artifact has failed please check log stream for details.:

Marcus 60 Reputation points
2025-04-02T01:52:28.8+00:00

Hi,

I am getting the Artifact build failure when i try and deploy a jar. It started happening 3 days ago even with jars that previously uploaded and deployed ok.

Please help urgently.

Thanks,

Marcus

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
692 questions
{count} votes

Accepted answer
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2025-04-21T16:13:04.0833333+00:00

    Hi @Marcus

    I appreciate your patience in working with us offline to resolve your issue.

    In summary, you hit an issue where you weren't able to upload your Spring app to your container app via the Artifact (Preview) i.e., source to cloud, feature. As this feature is still in preview and has a known issue, we mitigated your issue by using Azure Container Registry to contain a docker image of your application and have the container pull the image and serve your application.

    We walked through building your spring your application to a Dockerfile and pushing that image to a new container registry. We also created a new Container App instance that was configured to pull the image from the registry. We also noted that when you need to update your application, you can issue the following commands:

    # in the directory of your code repo
    az acr build --image <image/name:tag> --registry <your acr registry> --file Dockerfile .
    az containerapp revision restart --name <app name> --resource-group <resource group> --revision <revision name that is configured for image pull>
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.