We need to 'lock' our branch_dev during the nightly build process. This is to prevent any merges during build time because if build is successful, that code line is then merged into a branch_int, at which point the branch_dev can then be 'unlocked'.
I thought I'd use the stash cli and test doing this with the updateBranchPermissions, but I get a java lang exception:
I put the wrong output, below is the correct stash cli I passed and it's output:
stash --action updateBranchPermissions --project "SCOT" --repository "ScottTestRep" --id "5" --branch "branch_dev" --userId "33"
Picked up _JAVA_OPTIONS: -Xmx512M
Exception: java.lang.NullPointerException
I can't find any error being reported in the stash logs. Am I doing something incorrect?
In short, build starts, have our jenkins builder account have branch permissions. Build is over, update branch permissions to the original branch users.
If there is a better way to about this, please let me know.
Thanks!
Thank you for that idea. I didn't even think of pushes in progress. 'll give that a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
does we have answer to this issue or a best approach to perform this branch lock?
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.