Looking to see if it is possible to use script-runner to lock a branch while build is running to prevent additional changes.
We open a PR which triggers build. Build can run long, and we don't want changes coming in triggering another build on top of what is running.