Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Executing a jar utility on updated files before code push (pre-push)

Dilip Panwar
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 24, 2018

Hello Team,

 

I looked at various articles on pre-push/pre-recieve server side hooks and still not able to figure out how to proceed.

Here is my use case:

I have many configuration files in repository and before they pushed to repository, I want to run a jar utility on changed files or on whole repo to make sure that configurations files are in valid format.

If jar utility discovers any error in configuration file, we want to reject the push requested by user.

Can you please suggest whether it is feasible and if it is then how we can achieve it.

Please help by sharing a sample of same kind of implementation.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events