Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Could I disable production deployment on demand before comitting

albertaugustin
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!
July 4, 2018

I am searchin for a Solution to say in The commit: deploy on staging and production or deploy just staging. 

What i‘ve done so far: Setting up pipeline with two  steps. One step for staging on for production. 

Deployment working fine for now. 

But now i want to deploy only on staging eccept i write something in the commit to say: on production too!

 

 

1 answer

0 votes
lassian
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 23, 2018

Hi Albert,

Could you provide an example of your yaml configuration.

If the second step, that deploys to production, is it a manual step?

If so there is currently no feature in pipelines to automatically kick off this manual step triggered conditionally based on the contents of a commit.

Kind Regards,
Nathan

albertaugustin
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!
July 23, 2018

Hi Nathan, thanks for answering.

If there's no switch between example: staging and production. How do i divide these both servers, base on the same GIT-Repo?

Here is my example:

image: samueldebruyn/debian-git

pipelines:
default:
- step:
caches:
- node
deployment: staging
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://staging.ja.do/
- step:
caches:
- node
deployment: production
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAMEPROD --passwd $FTP_PASSWORDPROD ftp://production.ja.do/

 

Thanks in advance, Albert

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Bitbucket Events