Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

atlassian/ftp-deploy:0.7.1 > Env variable for "SERVER" use wrong repository variable!?

Michael Hohlfeld
Contributor
October 9, 2025

Hi everyone,

I wanted to update the FTP credentials used in my Bitbucket Pipeline today.


To do this, I renamed the existing repository variables:
FTP_HOSTFTP_HOST_OLD

Then I created a new variable named FTP_HOST with the new credentials and ran the pipeline.


The pipeline completed successfully (green status), but no update happened on my server.

When checking the pipeline logs, I noticed that the SERVER variable uses FTP_HOST_OLD and the value from FTP_HOST_OLD!?!?!?

...
--env=SERVER="$FTP_HOST" \
...
INFO: Starting FTP deployment to $FTP_HOST_OLD:/...
open: $FTP_HOST_OLD: Name does not resolve
...

In my repository variables list, I have the following (in exactly this order!):

  • FTP_USERNAME_OLD
  • FTP_PASSWORD_OLD
  • FTP_HOST_OLD
  • FTP_USERNAME
  • FTP_HOST
  • FTP_PASSWORD

My bitbucket-pipelines.yml clearly references FTP_HOSTThis is my bitbucket-pipeline.yml:

image: atlassian/default-image:2

pipelines:

branches:

master:

- step:

name: Deploy to mydomain.com

deployment: production

script:

- pipe: atlassian/ftp-deploy:0.7.1

variables:

USER: $FTP_USERNAME

PASSWORD: $FTP_PASSWORD

SERVER: $FTP_HOST

REMOTE_PATH: /

EXTRA_ARGS: "--exclude=.bitbucket/ --exclude=.git/ --exclude=bitbucket-pipelines.yml --exclude=.gitignore" # Ignore these

 

Question:
Does anyone know why Bitbucket is using the wrong variable?

Or is this a bug (or maybe an intended feature)?

 

Yeah, I guess deleting the _OLD variable would fix it, but this behavior seems kind of buggy, right?

Michael

1 answer

0 votes
Michael Hohlfeld
Contributor
October 9, 2025

??? very strange... Now I renamed FTP_HOST_OLD to FFTP_HOST_OLD and in the pipeline log in found this:

...
--env=SERVER="$FTP_HOST"
...
INFO: Starting FTP deployment to $FFTP_HOST_OLD:/...
open: $FFTP_HOST_OLD: Name does not resolve
...

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events