Closed sonalipcodiste closed 11 months ago
Same issue here, any update ?
Same issue here, any update ?
No update on this
I'm having the same issue with Gitlab pipelines.
2 of my static web apps form in a different resource group work but my new one in a new resource group doesn't. SWA is working though using the same deployment token
Hi all, sorry for the delay. The image staticwebapps.azurecr.io/bitbucket-deploy:stable (imported by microsoft / azure-static-web-apps-deploy / pipe.yml — Bitbucket) used to deploy swa was out-of-date. A new image has been pushed and verified. Things will work if you deployment again.
The same issue on Gitlab will also be fixed later.
Hi, @Gambitboy, we have fixed the image on GitLab as well. Please retry your deployment and let us know if it succeeds.
@mishapos Can confirm our gitlab pipelines worked. Thanks for the help
Seems there's a new problem on bitbucket pipelines using the updated pipe
+ docker container run \
--volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
--volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
--volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/microsoft/azure-static-web-apps-deploy:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/microsoft/azure-static-web-apps-deploy \
--workdir=$(pwd) \
--label=org.bitbucket.pipelines.system=true \
--env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \
--env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \
--env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \
--env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \
--env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \
--env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \
--env=BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID="$BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID" \
--env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
--env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \
--env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \
--env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \
--env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \
--env=BITBUCKET_DEPLOYMENT_ENVIRONMENT="$BITBUCKET_DEPLOYMENT_ENVIRONMENT" \
--env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \
--env=CI="$CI" \
--env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \
--env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \
--env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \
--env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \
--env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \
--env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \
--env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \
--env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \
--env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \
--env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \
--env=DOCKER_HOST="tcp://host.docker.internal:2375" \
--env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
--env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/microsoft/azure-static-web-apps-deploy" \
--env=API_LOCATION="$BITBUCKET_CLONE_DIR/api" \
--env=API_TOKEN="$deployment_token" \
--env=APP_BUILD_COMMAND="npm run build-dev" \
--env=APP_LOCATION="$BITBUCKET_CLONE_DIR" \
--env=OUTPUT_LOCATION="$BITBUCKET_CLONE_DIR/dist" \
--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
staticwebapps.azurecr.io/bitbucket-deploy:stable
Unable to find image 'staticwebapps.azurecr.io/bitbucket-deploy:stable' locally
stable: Pulling from bitbucket-deploy
69b3efbf67c2: Pulling fs layer
1dedceb9c21c: Pulling fs layer
4f4fb700ef54: Pulling fs layer
f61419dbfa3d: Pulling fs layer
a62f4fcb9027: Pulling fs layer
71c66ad90ee4: Pulling fs layer
0e57c7b36a63: Pulling fs layer
d2803b316ba5: Pulling fs layer
5002b014a3aa: Pulling fs layer
cc1e73b97eaf: Pulling fs layer
75e3b4ad3009: Pulling fs layer
b6d3a5fd02f7: Pulling fs layer
a62f4fcb9027: Waiting
b55cd2b67779: Pulling fs layer
71c66ad90ee4: Waiting
757b88fe8365: Pulling fs layer
c6c1bf6ec3dd: Pulling fs layer
0e57c7b36a63: Waiting
fa37ca3823d3: Pulling fs layer
f61419dbfa3d: Waiting
b805297ad876: Pulling fs layer
d2803b316ba5: Waiting
73bc877c7804: Pulling fs layer
ca3498822062: Pulling fs layer
5002b014a3aa: Waiting
471430f4a4ce: Pulling fs layer
75e3b4ad3009: Waiting
b6d3a5fd02f7: Waiting
757b88fe8365: Waiting
cc1e73b97eaf: Waiting
b55cd2b67779: Waiting
73bc877c7804: Waiting
fa37ca3823d3: Waiting
b805297ad876: Waiting
ca3498822062: Waiting
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
1dedceb9c21c: Verifying Checksum
1dedceb9c21c: Download complete
a62f4fcb9027: Verifying Checksum
a62f4fcb9027: Download complete
69b3efbf67c2: Verifying Checksum
69b3efbf67c2: Download complete
f61419dbfa3d: Verifying Checksum
f61419dbfa3d: Download complete
69b3efbf67c2: Pull complete
1dedceb9c21c: Pull complete
4f4fb700ef54: Pull complete
71c66ad90ee4: Verifying Checksum
71c66ad90ee4: Download complete
d2803b316ba5: Download complete
f61419dbfa3d: Pull complete
a62f4fcb9027: Pull complete
71c66ad90ee4: Pull complete
5002b014a3aa: Verifying Checksum
5002b014a3aa: Download complete
0e57c7b36a63: Verifying Checksum
0e57c7b36a63: Download complete
75e3b4ad3009: Verifying Checksum
75e3b4ad3009: Download complete
0e57c7b36a63: Pull complete
d2803b316ba5: Pull complete
5002b014a3aa: Pull complete
b6d3a5fd02f7: Verifying Checksum
b6d3a5fd02f7: Download complete
b55cd2b67779: Verifying Checksum
b55cd2b67779: Download complete
c6c1bf6ec3dd: Verifying Checksum
c6c1bf6ec3dd: Download complete
fa37ca3823d3: Verifying Checksum
fa37ca3823d3: Download complete
b805297ad876: Download complete
73bc877c7804: Verifying Checksum
73bc877c7804: Download complete
ca3498822062: Verifying Checksum
ca3498822062: Download complete
471430f4a4ce: Verifying Checksum
471430f4a4ce: Download complete
757b88fe8365: Verifying Checksum
757b88fe8365: Download complete
cc1e73b97eaf: Verifying Checksum
cc1e73b97eaf: Download complete
cc1e73b97eaf: Pull complete
75e3b4ad3009: Pull complete
b6d3a5fd02f7: Pull complete
b55cd2b67779: Pull complete
757b88fe8365: Pull complete
c6c1bf6ec3dd: Pull complete
fa37ca3823d3: Pull complete
b805297ad876: Pull complete
73bc877c7804: Pull complete
ca3498822062: Pull complete
471430f4a4ce: Pull complete
Digest: sha256:0f8b44daf4ac64231ffdf701fffc7034a63944e6c460f8e0335d75ce3e228f1e
Status: Downloaded newer image for staticwebapps.azurecr.io/bitbucket-deploy:stable
DeploymentId: e73156d5-af24-466f-b7df-6b563cf6fd4e
Try to validate location at: '/bin/staticsites/opt/atlassian/pipelines/agent/build'.
App Directory Location: '/opt/atlassian/pipelines/agent/build' was found.
Try to validate location at: '/bin/staticsites/swa-db-connections'.
Looking for event info
Could not get event info. Proceeding
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
Oryx will build app with the following custom override command: npm run build-dev
---Oryx build logs---
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20231027.1, Commit: 22314309551107182cffca9fc39d97480466c11c, ReleaseTagName: 20231027.1
Build Operation ID: aa05a1ba91fd8244
OS Type : bullseye
Image Type : jamstack
Detecting platforms...
Detected following platforms:
nodejs: 20.9.0
Version '20.9.0' of platform 'nodejs' is not installed. Generating script to install it...
Detected the following frameworks: Vue.js
Source directory : /opt/atlassian/pipelines/agent/build
Destination directory: /bin/staticsites/e73156d5-af24-466f-b7df-6b563cf6fd4e-swa-oryx/app
Installing common platform dependencies...
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8062 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [260 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [17.7 kB]
Fetched 8548 kB in 1s (6777 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
libnghttp2-14 libpq-dev libpq5 libtiff5
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 691 kB of archives.
After this operation, 7168 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian-security bullseye-security/main amd64 libnghttp2-14 amd64 1.43.0-1+deb11u1 [77.2 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security/main amd64 libpq-dev amd64 13.13-0+deb11u1 [141 kB]
Get:3 http://deb.debian.org/debian-security bullseye-security/main amd64 libpq5 amd64 13.13-0+deb11u1 [182 kB]
Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 libtiff5 amd64 4.2.0-1+deb11u5 [290 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 691 kB in 0s (27.4 MB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20486 files and directories currently installed.)
Preparing to unpack .../libnghttp2-14_1.43.0-1+deb11u1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.43.0-1+deb11u1) over (1.43.0-1) ...
Preparing to unpack .../libpq-dev_13.13-0+deb11u1_amd64.deb ...
Unpacking libpq-dev (13.13-0+deb11u1) over (13.11-0+deb11u1) ...
Preparing to unpack .../libpq5_13.13-0+deb11u1_amd64.deb ...
Unpacking libpq5:amd64 (13.13-0+deb11u1) over (13.11-0+deb11u1) ...
Preparing to unpack .../libtiff5_4.2.0-1+deb11u5_amd64.deb ...
Unpacking libtiff5:amd64 (4.2.0-1+deb11u5) over (4.2.0-1+deb11u4) ...
Setting up libnghttp2-14:amd64 (1.43.0-1+deb11u1) ...
Setting up libpq5:amd64 (13.13-0+deb11u1) ...
Setting up libpq-dev (13.13-0+deb11u1) ...
Setting up libtiff5:amd64 (4.2.0-1+deb11u5) ...
Processing triggers for libc-bin (2.31-13+deb11u7) ...
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.30.2-1+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Downloading and extracting 'nodejs' version '20.9.0' to '/opt/nodejs/20.9.0'...
Detected image debian flavor: bullseye.
Downloaded in 1 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: nodejs...
Done in 2 sec(s).
Removing existing manifest file
Creating directory for command manifest file if it does not exist
Creating a manifest file...
Node Build Command Manifest file created.
Using Node version:
v20.9.0
Using Npm version:
10.1.0
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/bitbucket-pipelines.yml.bak': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/description': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/packed-refs': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/config': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/index': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/HEAD': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/info/exclude': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/info': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/objects/pack/pack-78b8aba298ed658b689c4e42f17dbe202e8d5749.idx': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/objects/pack/pack-78b8aba298ed658b689c4e42f17dbe202e8d5749.pack': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/objects/pack/pack-78b8aba298ed658b689c4e42f17dbe202e8d5749.rev': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/objects/pack': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/objects/info': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/objects': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/ORIG_HEAD': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/commit-msg.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/applypatch-msg.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/pre-push.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/pre-applypatch.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/pre-rebase.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/prepare-commit-msg.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/pre-receive.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/post-update.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/pre-merge-commit.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/sendemail-validate.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/push-to-checkout.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/update.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks/pre-commit.sample': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/hooks': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/shallow': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/branches': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/HEAD': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/refs/heads/main': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/refs/heads': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/refs/remotes/origin/HEAD': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/refs/remotes/origin': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/refs/remotes': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs/refs': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/logs': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs/tags': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs/heads/main': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs/heads': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs/remotes/origin/HEAD': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs/remotes/origin': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs/remotes': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git/refs': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.git': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/specs/test.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/specs/Onboarding/accouningOnboarding.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/specs/Onboarding': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/specs': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/custom-commands/openHomepage.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/custom-commands/customExecute.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/custom-commands/openHomepageClass.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/custom-commands': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/.eslintrc.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/custom-assertions/placeholder.txt': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/custom-assertions': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/nightwatch.conf.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/globals.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/page-objects/homepage.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e/page-objects': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests/e2e': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tests': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/bitbucket-pipelines.yml': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/tailwind.config.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.env.staging': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.gitignore': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/.env.production': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/login.html': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/templates/ee_appointment_letter.html': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/templates': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/videos/register-login-tut.mp4': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/videos': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/links.html': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/index.html': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/pdfjs-viewer/build/pdf.js': Operation not permitted
chown: changing ownership of '/opt/atlassian/pipelines/agent/build/public/pdfjs-viewer/build/pdf.worker.js': Operation not permitted
this is the pipeline setup
pipelines:
branches:
main:
# - step: *e2e-test !skip for now until configured correctly
- step:
name: Deploy to test
deployment: test
script:
- export npm_config_cache=${HOME}/npm/cache
- pipe: microsoft/azure-static-web-apps-deploy:main
variables:
APP_LOCATION: "$BITBUCKET_CLONE_DIR"
API_LOCATION: "$BITBUCKET_CLONE_DIR/api"
OUTPUT_LOCATION: "$BITBUCKET_CLONE_DIR/dist"
APP_BUILD_COMMAND: npm run build-dev
API_TOKEN: $deployment_token
SKIP_API_BUILD: "true"
VERBOSE: "true"
services:
- docker
size: 2x
Hi @ROGERNDABA , this one did work for me :
Add this line in your script section above everything :
- chown -R 165536:165536 $BITBUCKET_CLONE_DIR
This is mentioned in this doc
https://confluence.atlassian.com/bbkb/bitbucket-cloud-subsequent-pipe-step-run-fail-with-permission-denied-error-when-performing-write-operation-of-files-artifacts-1282249505.html
Hi @ROGERNDABA , this one did work for me : Add this line in your script section above everything :
- chown -R 165536:165536 $BITBUCKET_CLONE_DIR
This is mentioned in this doc https://confluence.atlassian.com/bbkb/bitbucket-cloud-subsequent-pipe-step-run-fail-with-permission-denied-error-when-performing-write-operation-of-files-artifacts-1282249505.html
Thank you @DijilanMouhous. That worked
Excellent, thanks all for confirmation that the fix worked, closing this issue 👍
I am trying to deploy static react web app with azure using Bitbucket pipeline This is my pipeline `image: node:16 definitions: services: docker: memory: 3072 pipelines: branches: main:
step: name: Deploy to production deployment: production script:
pipe: microsoft/azure-static-web-apps-deploy:main variables: APP_LOCATION: '$BITBUCKET_CLONE_DIR' OUTPUT_LOCATION: '$BITBUCKET_CLONE_DIR/build' API_TOKEN: $deployment_token`
An unknown exception has occurred