Forums

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

Skip git clone for configuration steps

Heiner Oßwald
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!
November 7, 2018

Our `bitbucket-pipelines.yml` contains `stepdefinitions` that do nothing more than write a configuration file:

image: ourcompany/our-custom-docker-image

clone:
lfs: true
depth: 1

stepdefinitions:
- configure-deployment-staging: &configure-deployment-staging
deployment: staging
name: Configure deploy staging
image: alpine
script:
- echo "PROJECT=project-staging" >> deploy.properties
artifacts:
- deploy.properties
- configure-deployment-production: &configure-deployment-production
deployment: staging
name: Configure deploy production
image: alpine
script:
- echo "PROJECT=project-production" >> deploy.properties
artifacts:
- deploy.properties
- deploy: &deploy
script:
- set -a
- . ./deploy.properties
- set +a
- deploy.sh #actually more that I don't want to duplicate

pipelines:
custom:
deploy-staging:
- step: *configure-deployment-staging
- step: *deploy

deploy-production:
- step: *configure-deployment-production
- step: *deploy

I want to speed up the pipeline by skipping the cloning of the project for the `configure` steps. Is it possible, in general, to have steps where the repo is not checked out?

1 answer

1 vote
Jeroen De Raedt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 19, 2018

Hi @Heiner Oßwald,

unfortunately at the moment there is no way to skip the clone. Please feel free to raise a feature request here: https://bitbucket.org/site/master/issues/new 

Bartek Soin
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!
March 5, 2019

Is this still the case? Was there ever a feature request submitted that I could vote for?

Heiner Oßwald
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!
March 6, 2019

@Bartek Soinno, I never got around to submit one. If you want to do it, feel free to take my example from above. Please link the feature request here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events