Build chaining
Free Commit should keep it simple, so we don't offer many built-in features, so in some cases, build chaining may be an option.
Know that you can use the API in your scripts and do manual build launches
For example, let's say your cleanup script is very long and can be run later, you can simply run a "clean-up-the-trash" build which will be queued and run when an executor is available.
know that you can send all the information you want to another build, by putting it in the json payload, and recover it simply by doing
PAYLOAD_BASE64="$(printenv FREE_COMMIT_REQUEST_BODY)"
PAYLOAD="$(echo $PAYLOAD_BASE64 | base64 -d)"
echo "$PAYLOAD" > payload.json
ACTION="$(jq -r '.action' payload.json)"
COMMENT="$(jq -r '.comment.body' payload.json)"
FREE_COMMIT_REQUEST_BODY is available in all builds
Last updated