Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline with scp deploy

Maistre June 11, 2020

i received this error with scp pipeline,

Searching for files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/**

Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4Finished scanning for test reports. Found 0 test report files.Merged test suites, total number tests is 0, with 0 failures and 0 errors.

 

I don't understand what is wrong, below is my bitbucket-pipelines.yml:

image: node:11

options:
size: 2x # all steps in this repo get 8GB memory

pipelines:
  default:
    - step:
       caches:
         - node
       script:
         - yarn
         - yarn test
         - yarn build
      artifacts: # defining the artifacts to be passed to each future step.
         - dist/**
   - step:
     name: Deploy to dev env
     deployment: Test
     script:
        - ls -R $BITBUCKET_CLONE_DIR
        - pipe: atlassian/scp-deploy:0.3.11
            variables:
              USER: $USER
              SERVER: $SERVER
              REMOTE_PATH: $REMOTE_PATH
              LOCAL_PATH: dist/*
              SSH_KEY: $SSHKEY
              DEBUG: 'true'
              EXTRA_ARGS: $EXTRA_ARGS

 

Regards,
Vinycio

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2020

Hi Vinycio,

Like Radek, I would also like to ask if you could copy-paste here the full content of the Pipelines log file (*please sanitize* any private/sensitive info in the log file before sharing it) for the step that is failing with this error.

This way we have more info on the issue so we can better help you.

Kind regards,
Theodora

0 votes
Radek Antoniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2020

It looks like similar problems that were mentioned before, take a look here and here.

Maistre June 12, 2020

The artifact is correct. I changed LOCAL_PATH: dist / * to LOCAL_PATH: 'dist / *', as shown in the documents, but the same problem occurred

Radek Antoniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 13, 2020

Can you show the full output of the pipeline log?
Are you sure you're having the problem with deployment step and not the test step? 
It clearly states it's looking for test artifacts.

Like urielmori97 likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events