Hello,
I'm trying to deploy build using scp-deploy 1.2.1. I followed the example on the page and I get weird error.It seems to me like the scp command is not properly invoked.
Attaching my bitbucket-pipeline.yaml file and screenshot of the error.
Any ideas?
Variables are defined, folders are created and the user has permissions.
Thank you for ideas,
Jure
Hi @jurepetrovic . According to this example , you should have artifacts to deploy, do you have it in your case?
image: node:10.15.3
pipelines:
default:
- step:
name: Build and test
caches:
- node
script:
- npm install
- npm test
- npm run build
artifacts:
- build/**
- step:
name: Deploy artifacts using SCP to PROD
deployment: production
script:
- pipe: atlassian/scp-deploy:1.2.1
variables:
USER: $USER
SERVER: $SERVER
REMOTE_PATH: '/var/www/scp-deploy/html'
LOCAL_PATH: 'build/*'
Also try to add DEBUG: true to your pipeline configuration,maybe we will see more details.
Cheers
Yes, I was missing "artifacts" declaration. Thank you for your help! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.