Hi Guys,
I need to configure Bitbucket Pipeline only for master and dev branches, how can I configure it with bitbucket-pipelines.yml
Hi @Pavinthan,
take a look at this documentation page, where it outlines some examples how how to set up pipelines per type of branch: https://confluence.atlassian.com/bitbucket/branch-workflows-856697482.html
Hi @Jeroen De Raedt,
I need to configure it only master and dev branches, my bitbucket-pipelines.yml down below, but It's not make sense. please advice to run only master and dev branches
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: laratools/ci:7.2
options:
max-time: 30
pipelines:
branches:
master, dev:
- step:
caches:
- composer
script:
- composer install --no-progress --no-suggest
- export APP_ENV=testing
- cp .env.example .env
- php artisan key:generate
- vendor/bin/phpunit --log-junit ./test-reports/junit.xml
Thank you,
Pavinthan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.