The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

deploy artificats to private server using scp

sri harsha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2024

Hi Team,

I am using bitbucket runner in my pipelines. can you guide us to deploy this artifacts in private server(i.e doesnot contain public ip) using scp pipe or pipelne script

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 5, 2024

Hi @sri harsha and welcome to the community!

What type of runner are you using? Is it Linux Docker, Linux Shell, MacOS, or Windows runner?

Pipes can only be used with Linux Docker runners. If you are using this type of runner, you can check the README of the scp-deploy pipe here:

This has details and examples of using the pipe. In the SERVER variable, you will need to use the private IP of the server you want to deploy to.

If you are using a Linux Shell, MacOS, or Windows runner, the builds don't run in Docker containers but directly on the host (in Bash for the first two and PowerShell for the latter). The commands in your bitbucket-pipelines.yml file script are Linux or PowerShell commands. So, you could use an scp command in your yml file to deploy to a private server. The scp command can be used also with Linux Docker runners.

You can check the man page of the scp command here:

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events