Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

FTP push after gulp build process Edited

I am having difficulty trying to reconfigure my pipeline with bitbucket.

TL:DR

Before, i used ncftpput and everything worked fine for months with this pipeline:

image: node:9.8.0
pipelines:
branches:
master:
- step:
name: Building
script:
- npm install -g gulp
- npm install --quiet
- gulp --production
- echo "Initiating Push site:Source"
- apt-get update || true
- apt-get install ncftp
- ls -lh
- ncftpput -z -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R ftp.xxxxxx.com / dist/*
- echo "Finished uploading"

But, in de latest try, was returned the error:

+ ncftpput -z -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R ftp.xxxxx.com.br / dist/.
dist/./contato.php: dist/./contato.php: ETA: 0:00 4.10/ 4.10 kB 50.06 MB/s dist/./contato.php: ETA:
**** various lines with tryes to upload *****
ncftpput dist/.: could not send file to remote host.

 So how i wont discovered what happenned before, because nothing was changed in my remote server, i decided to try other alternatives to upload via FTP, and now i have this pipeline:

image: node:9.8.0
pipelines:
branches:
master:
- step:
name: Building
script:
- npm install -g gulp
- npm install --quiet
- gulp --production
- echo "Initiating Push site:Source"
- apt-get update || true
- ls -lh
- pipe: atlassian/ftp-deploy:0.3.1
variables:
USER: $FTP_USERNAME
PASSWORD: $FTP_PASSWORD
SERVER: 'ftp.xxxxxxxx.com'
REMOTE_PATH: '/test'
LOCAL_PATH: 'dist/*'
DEBUG: 'true'
EXTRA_ARGS: '--ignore-size set ftp:list-options -a'

When i run this, the error returned is:

Status: Downloaded newer image for bitbucketpipelines/ftp-deploy:0.3.1
INFO: Starting FTP deployment to ftp.xxxx.com:/test...
+ LFTP_DEBUG_ARGS=-vvv
+ run_pipe
+ info 'Starting FTP deployment to ftp.xxxxx.com:/test...'
+ echo -e '\e[36mINFO: Starting FTP deployment to ftp.xxxxxx.com:/test...\e[0m'
+ set +e
+ lftp -u giov11br,$FTP_PASSWORD -e 'set ftp:ssl-allow no; mirror --delete-first -vvv --ignore-size set ftp:list-options -a -R ./dist/* /test;quit' ftp.xxxxxxx.com
mirror: Access failed: /opt/atlassian/pipelines/agent/build/set: No such file or directory
+ set -e
+ STATUS=0
+ [[ 0 == \0 ]]
+ success 'Deployment finished.'
+ echo -e '\e[32m✔ Deployment finished.\e[0m'
+ exit 0
✔ Deployment finished.

I dont know what i need to do, i think the dist exists because is the same step like before. I have already tried to remove de optional LOCAL_PATH to upload everything, creating de REMOTE_FOLDER with permissions, and the same error occurs.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

788 views 15 10
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