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?
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
Is this still the case? Was there ever a feature request submitted that I could vote for?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.