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

Do Bitbucket Pipeline have "rules" / "only-except" like in gitlab CICD

Solomon Leung November 21, 2019

HI all,

 

I trying deploy micro-services with multiples container in same bitbucket repository. currently.

 

For some newly added features, only some of the container will be modify, and I would like to avoid all container build again in "build" step (Noticed that there could be control over branches, but controlling step within the branch ? ).

 

In gitlab, Its allow some sort of control on job (step in bitbucket) so that it could avoid container without modification be re-build again and hence avoid wasting build time.

https://docs.gitlab.com/ee/ci/yaml/#rules

docker build: script: docker build -t my-image:$CI_COMMIT_REF_SLUG . rules: - changes: # Will include the job and set to when:manual if any of the follow paths match a modified file. - Dockerfile when: manual

Run manually if Dockerfile has changed OR $VAR == "string value"

 

Is there already such feature ? if not, would it be on product roadmap ?

p.s.

- using GCP

- my situation (used docker-compose to develop locally, for a single service with multiple backend micro-services)

https://www.reddit.com/r/devops/comments/9udhp8/how_to_adopt_gitlab_flow_for_microservices/

 

Looking forward to your advise !

Cheers

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2020

Hi Solomon,

At the moment there is no built-in support for having these types of conditions on steps being triggered.

We an open feature request for triggering pipelines after certain files change. Which you can follow.

You can also open a new feature request here: https://jira.atlassian.com/secure/CreateIssue!default.jspa

Thanks,

Phil

Solomon Leung January 16, 2020

Hi Phil,

Thanks for the update, hope this feature request could be adopted and rollout soon!

Cheers,

Solomon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events