LoginSignup
5
1

More than 5 years have passed since last update.

【Bitbucket Pipelines】stepを別定義して複数パイプラインで共有する

Last updated at Posted at 2018-06-26

ドキュメントのどこにも書いてないっぽいけど、できるみたい。

stepdefinitions:
  - builddeps: &builddeps
      name: install deps
      script:
        - dist/bitbucket/before_install.sh
        - dist/bitbucket/install.sh
      artifacts:
        - vendor/**
  - lintingtesting: &lintingtesting
      name: linting, testing
      script:
        - dist/bitbucket/lint.sh
        - dist/bitbucket/test.sh
pipelines:
  branches:
    master:
      - step: *builddeps
      - step: *lintingtesting
  default:
    - step: *builddeps
    - step: *lintingtesting

@Jochen We that's great, thanks!!!!!

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1