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 firstname.lastname@example.org npm info using email@example.com npm info lifecycle firstname.lastname@example.org~predeploy: email@example.com npm info lifecycle firstname.lastname@example.org~deploy: email@example.com > firstname.lastname@example.org deploy /opt/atlassian/bitbucketci/agent/build > dploy – Enter the password for ftp.materialpokedex.com: Connecting to live... Connection failed. Connection failed. npm info lifecycle email@example.com~postdeploy: firstname.lastname@example.org 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.
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
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!
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot