0

For some reason, my pipeline stopped working while I was trying to deploy my static web app on Azure.

pipelines:
  branches:
   main:
    - step: 
        name: Deploy to test
        deployment: test
        script:
          - chown -R 165536:165536 $BITBUCKET_CLONE_DIR
          - pipe: microsoft/azure-static-web-apps-deploy:main
            variables:
                APP_LOCATION: '$BITBUCKET_CLONE_DIR/norius-lp'
                OUTPUT_LOCATION: '$BITBUCKET_CLONE_DIR/norius-lp/dist/norius-lp/browser'
                API_TOKEN: myapitoken``` 

[![log][1]][1]


  [1]: https://i.sstatic.net/TMePAmxJ.png
4
  • Please provide the error message you are receiving. Commented Feb 12 at 23:37
  • If possible, share your repository. Commented Feb 13 at 4:50
  • @AsleshaKantamsetti There is no error, just the last log line saying that it is building. Please check the log here i.sstatic.net/TMePAmxJ.png Commented Feb 13 at 10:38
  • Try below Solution. Commented Feb 13 at 10:39

1 Answer 1

0

Bitbucket pipeline stuck at "Building" when trying to deploy do AZURE Static Web App

Bitbucket pipeline stuck at Building process because of memory allocation for the Docker service. Docker service runs with the default 1GB memory limit this is insufficient for complex Angular builds.

To avoid the above issue, I increase the docker memory with 7GB and set the pipeline step to runs with size: 2x in the bitbucket YML file.

definitions:
  services:
   docker:
    memory: 7168
name: Deploy to Azure Static Web App
size: 2x

Below is my complete bitbucket YML file.

bitbucket-pipelines.yml:

definitions:
  services:
    docker:
      memory: 7168
pipelines:
  branches:
    main:
      - step:
          name: Deploy to Azure Static Web App
          size: 2x 
          deployment: test
          services:
            - docker 
          script:
            - chown -R 165536:165536 $BITBUCKET_CLONE_DIR
            - pipe: microsoft/azure-static-web-apps-deploy:main
              variables:
                APP_LOCATION: '$BITBUCKET_CLONE_DIR'
                OUTPUT_LOCATION: '$BITBUCKET_CLONE_DIR/dist/my-angular-app/browser'
                API_TOKEN: $deployment_token

After modifying the YML file I successfully deployed Angular app to Azure Static Web App as shown below.

enter image description here

Azure Output:

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

@leandro.starke Please check if the solution above helped you. Let me know if there's anything else I can assist with.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.