The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events