Jira software: trigger a script on release?
Asked Answered
N

2

7

I'd like, on "Release" button pressed, to trigger a server-side script of my own. I don't need to use big thing like Jenkins, I just need to run a simple script.

I looked into the documentation and found "Listeners" on earlier versions, but there is nothing in the doc for latest version.

Any idea?

Nitaniter answered 21/12, 2015 at 22:45 Comment(0)
A
10

Can you wrap your remote script in an HTTP interface and trigger it via a webhook? https://developer.atlassian.com/jiradev/jira-apis/webhooks

Astor answered 24/12, 2015 at 10:47 Comment(3)
I have to make some test before validating the answer. It looks promising, but also very limited for release, as the hook does not provide useful data with the release.Nitaniter
@ConstantinGuay what other data do you need? Hook itself provides limited data but you could query JIRA back via rest API to get more information.Creath
@PetroSemeniuk I need, per example, the label of the deployed version. The id is not easy to use outside Jira. I need it to tag the commit deployed per example.Nitaniter
C
0

you can also use the script runner plugin for jira, which can execute a script with a ssh on a server or whatever you like

Crustal answered 23/8, 2017 at 5:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.