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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipeline with scp deploy

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

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

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

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

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,827 views 10 16
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