Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,932
Community Members
 
Community Events
165
Community Groups

scp-deploy: error usage: scp

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?

slika.png

 

# The following deployment steps will be executed for each pipeline run. To configure your steps and conditionally deploy see https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/
    - step:
        name: 'Deployment to Staging'
        deployment: staging
        script:
          - pipe: atlassian/scp-deploy:1.2.1
            variables:
              USER: $USER
              SERVER: $SERVER
              REMOTE_PATH: '/var/www/scp-deploy/qa_tool/'
              LOCAL_PATH: 'dist/testing-tool/*'

 

Variables are defined, folders are created and the user has permissions.

Thank you for ideas,

Jure

 

 

1 answer

1 accepted

0 votes
Answer accepted

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! :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you