It seems I can't deploy to FTP

I'm using the npm package dploy to put all my files onto an FTP server. It runs just fine when I run it in my windows or my linux machines however when it runs in pipelines the FTP Connection fails. Is this a pipelines issue or should I look into my code more?

Here's my output for the script step that's attempting the deploy.

+ echo $FTP_PASSWORD | npm run deploy
npm info it worked if it ends with ok
npm info using npm@3.8.6
npm info using node@v5.11.0
npm info lifecycle material-pokedex@1.0.0~predeploy: material-pokedex@1.0.0

npm info lifecycle material-pokedex@1.0.0~deploy: material-pokedex@1.0.0

> material-pokedex@1.0.0 deploy /opt/atlassian/bitbucketci/agent/build
> dploy

– Enter the password for 

Connecting to live...
Connection failed.
Connection failed.

npm info lifecycle material-pokedex@1.0.0~postdeploy: material-pokedex@1.0.0
npm info ok

I have made sure that my FTP_PASSWORD variable is properly escaped. I can run that exact command on my linux mint setup and it works. I've also tried it with printf and quotes instead of echo and haven't noticed a change. Both work on my setup.

EDIT: So it seems to be something related to my password. I changed my password and now it works. Maybe it wasn't fully escaped or something. I don't know. I think the only way to get help would be to expose my password. Something must be different between Mint's console and Ubuntu's console.

1 answer

This widget could not be displayed.

In principal that should be possible and so you should probably share some more information to see what's going wrong. Can you paste the output?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

245 views 14 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you