参考:
Documentation:
NOTE:
deployment: Production
などと指定すると、そのstepのビルドがデプロイ先環境と紐付けられる。ドキュメント: bitbucket-pipelines.yml の設定 - アトラシアン製品ドキュメント
pull-requests
というキーワードによって、PRをトリガーとするパイプライン処理を記述できる。
Example:
pipelines:
pull-requests:
'**': #this runs as default for any branch not elsewhere defined
- step:
script:
- ...
feature/*: #any branch with a feature prefix
- step:
script:
- ...
参考:
ドキュメント: bitbucket-pipelines.yml の設定 - アトラシアン製品ドキュメント
trigger: manual
をつける。Example:
pipelines:
default:
- step:
script:
- ./run-test.sh
- step:
trigger: manual
script:
- ./deploy.sh
Tips:
Docker イメージをビルド環境として使用する - アトラシアン製品ドキュメント
$MY_SECRET
のように表示されるコミットメッセージに [skip ci]
または [ci skip]
を含める。
Bitbucket Pipelines の FAQ - アトラシアン製品ドキュメント
リポジトリにプッシュ バックする - アトラシアン製品ドキュメント
Example:
pipelines:
default:
- step:
script:
- echo "Made a change in build ${BITBUCKET_BUILD_NUMBER}" >> changes.txt
- git add changes.txt
- git commit -m "[skip ci] Updating changes.txt with latest build number."
- git push
Bitbucketサーバ版に対応してそうなCIツール: