curl -s -u username:password -H "X-Atlassian-Token:no-check" -X POST $BITBUCKET_URL/rest/gx/1.0/scheduler/schedule -d @/path/to/payload --header "Content-Type: application/json"

where /path/to/payload should contain:


- "arguments":false means "disable"
- "arguments":true means "enable"

There're also convenience variants of the payload:

  • to disable

  • to enable


The "id" parameter is the repository id that can be found on Repository Settings page of the Bitbucket ("Location on disk" section).

This command currently doesn't return any visible result to the console. This will be fixed in the future releases.
You may check the command output in the logs: 

git log -p refs/gx/metadata

  • No labels