I'm trying to create a jira automation that can trigger a jenkins build remotely using the send webhook request.
I didn't have any success yet.
I'm able to do this with curl using these variations:
curl -X POST "https://jenkins.company.com/job/My%20Projects/job/test_hook/build" --user user@company.com:tokenvalue
curl -X POST "https://user%40company.com:tokenvalue@jenkins.company.com/job/My%20Projects/job/test_hook/build"
I was able to do this in Python as well using below:
url = "https://jenkins.company.com/job/My%20Projects/job/test_hook/build"
username = "user@company.com"
token = "tokenvalue"
response = requests.post(url, auth=(username, token))
url = "https://jenkins.company.com/job/My%20Projects/job/test_hook/build"
headers = {
'Content-Type':'Application/JSON',
'Authorization' : 'Basic base64conversion='
}
response = requests.post(url, headers=headers)
Welcome to the community.
Next to the mentioned trigger plugin, there is also Jenkins Integration for Jira that has the capability to trigger builds and send issue fields as build parameters using a manual action and workflow post function.
I must say that I'm the maintainer f the before mentioned app.
Cheers,
Mark
Thank you, the pricing model doesn't justify my need. It was quite difficult to even discover the pricing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On the discovery of the pricing, maybe Atalssian can take the feedback on that one as partners have no say other then the pricing itself.
As for the justification, If you think the app itself would give value and just the pricing is the blocker, then please reach out to me, or book a meeting with me so we can discuss your specific case and see how I can help you.
Cheers,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Good day. Instead of automation you could the Webhook option as well. Hope this link helps : https://github.com/jenkinsci/jira-trigger-plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.