Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to validate certain files are modified on a path in bitbucket/stash

dineshav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2019

Hello Friends,

 

  I need to write a groovy script that will validate a path during pullrequest/merge that certain files has been modified, if yes it should reject the merge.

 

example:

 

 Lets say, "properties" directory has got list of file, file-a, file-b, file-c and file-d. And if any one of this file got modified, merge should be allowed, if more than one file is modified it should reject the merge.

Could you please advise ?

 

Thanks in Advance

Dinesh

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events