Notes on Bitbucket Pipelines
Build exceeded memory limit.
This can happen for large steps, in my case building an app bundle with
turtle-cli. You can double the memory allocation for a step with
Regular steps have
4096 MBof memory in total, large build steps (which you can define using
size: 2x) have
8192MB in total.
- step: &turtle-build-android name: Build app bundle (.aab) image: ubuntu:focal size: 2x # Double resources available for this step. caches: - npm script: - echo 'this is my step with 2x memory'
Get the commit message for the commit that triggered the pipeline
pipelines: default: - step: script: - COMMIT_MESSAGE=`git log --format=%B -n 1 $BITBUCKET_COMMIT` - echo $COMMIT_MESSAGE