Recent upgrade to JIRA v6.3.15 has broken a Subversion post-commit hook.

A recent JIRA upgrade appears to have broken a Subversion post-commit hook that I have had in place for a number of years. This hook was working in tandem with the Commit Acceptance plugin (v1.6.0). The python script was using xmlrpc (http://[base]/jira/rpc/xmlrpc) in the URL being called here:

# invoke JIRA web service
xmlrpcUrl = jiraBaseURL + 'jira/rpc/xmlrpc'
try:
s = xmlrpclib.ServerProxy(xmlrpcUrl)
acceptance, comment = s.commitacc.acceptCommit(jiraLogin, jiraPassword, author, projectKey, message).split('|');
except:
acceptance, comment = ['false', 'Unable to connect to the JIRA server at "' + xmlrpcUrl + '".']

I noted in the JIRA upgrade documentation that the use of rpc/xmlrpc is to be deprecated, though I assume that an update to the plugin would accommodate that.

In the meantime however, this hook is essential to our QA measures. How do I reinstantiate this functionality?

1 answer

David, the Commit Policy Plugin is an alternative to the Commit Acceptance Plugin (with quite some major improvements).

One of the differences that it is using the REST API, so that it will work for 6.3 and especially for the JIRA 7 line (where the XMLRPC API is not just deprecated, but totally removed).

Trial this free.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

187 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you