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

Will Pipelines recognize flat files or do I have to set up a full docker image locally? Edited

Hi, I was hoping I could just tell pipelines the location of my local folders and files and use it to deploy them to my server without having to configure a local docker image.

I got the server up and connected with SSH and can see a successful connection on that end. I can even connect to the repository on Bitbucket from my local computer and push and pull the changes in the repository.

However, I cannot seem to figure out a way to get pipelines running and I am wondering if it is because I need to build a docker image locally. If so, I ran into several issues a few months ago when trying to get docker working locally because of the firewalls and security on my work computer so I was trying not to do that and may have to find a different solution. Thanks in advance!

 

These are the last few lines of output from running the pipeline:

sftp> mput /Users/jhorning/Sites/dev.jtcc.edu/stat /Users/jhorning/Sites/dev.jtcc.edu/: No such file or directory✖ Deployment failed.

However, I know this file/directory exist and I am able to push and pull from it.

1 answer

0 votes

Hi @Jerad Horning 

If the files exist, Pipelines should be able to recognise them.

I would recommend using our SFTP pipe which should make the configuration easier. See the documentation for more details: https://bitbucket.org/atlassian/sftp-deploy/src/master/

Hope this helps!

Hi Davina,

I ended up submitting a support request which lead us to figuring out that I needed to change the LOCAL_PATH from '/Users/jhorning/Sites/dev.jtcc.edu' to 'build' which also didn't work so then I had to change it to the full path: '/opt/atlassian/pipelines/agent/build' which works great.

Now, I have a somewhat related question: I am able to push changes to Bitbucket and then the pipeline automatically runs and pushes the files and changes to our server. However, if I delete a file locally and commit and push that change, the file never gets deleted from our server. Is there a setting somewhere or something that I need to change to get that to work?

Thanks in advance for the help!

Suggest an answer

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

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,081 views 4 22
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