You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We have repo in bitbucket cloud. whenever commit happens we need automatically push codes into our file location. we have multiple local windows machine. i tried the FTP method and SSH both need public IP but we need each server to get a public IP thats a long process. is there any method to create a pipeline to automatically push codes into local private windows machine. previosly i tried this code
- pipe: atlassian/ftp-deploy:0.3.7
EXTRA_ARGS: "--exclude=filename_to_exclude.txt --exclude=folder_to_exclude/"
its not woeking so i tried openSSH method
name: Deploy to Windows Server
- apt-get update && apt-get install -y openssh-client
- ssh -T $USERNAME@$HOST
git clone firstname.lastname@example.org:<redacted>/<redacted>.git .
git checkout master
git pull origin master
this is also not working i added known host and open 22 port also, please suggest me best way to communicate cloud to local network.
Hello @Naveenkumar M ,
Thank you for reaching out to Atlassian Community!
When executing your pipeline using Atlassian infrastructure (cloud runners), your builds will run in a cloud environment and to access external resources, such as your windows servers, these servers will need to have a public IP address so they are reachable from the internet.
In order to access servers in your local network you have the option to use self-hosted runners, so the build will run in your own infrastructure and have access to the servers within your local network.
Another option would be to implement a script/job in each of the servers that keep pulling (git pull) the repository from bitbucket every X minutes, so you would get the latest update from the repo every time the job runs.
Hope that helps to address your questions!
Thank you, @Naveenkumar M