Configure Jenkins notifications to our ticket tracker
Originally created by @bertagaz on #9719 (Redmine)
We specified in the automated builds specifications that Jenkins should be able to notify a branch ticket on Redmine:
Otherwise if the build fails I *need* to see the build logs
And the developer who proposed the merge must be notified
And the ticket should be reassigned to the branch submitter
And QA check should be set to "Dev needed"
There’s no Redmine plugins for Jenkins out there.
But Redmine offers two ways to do that:
- By email
- Using its API
The first solution can use Jenkins abilities to send emails with configurable/scriptable subjects and bodies with the email-ext plugin. This shouldn’t require much complex setup to work on, only in the Jenkins{,-job-builder} side, as there’s probably nothing to do on Redmine.
The second solution can make use of the python-redmine package in Debian. This requires yet another homebrewed script, with little setup in Redmine.
Note that changing the ticket state is easy, but assigning a different owner might be a bit more difficult. All that Jenkins knows about is a commit author email, not a Redmine username, so maybe the email solution won’t be able to cover every bits of the specification.
Let’s try to setup the first one to see if it’s that easy, and if not so useable we can still fallback on the API implementation.
In this thread we had pretty good discussions about what we need and how to get it:
- https://mailman.boum.org/pipermail/tails-dev/2015-June/009098.html
- https://mailman.boum.org/pipermail/tails-dev/2015-July/009160.html
- https://mailman.boum.org/pipermail/tails-dev/2015-August/009396.html
- https://mailman.boum.org/pipermail/tails-dev/2015-September/009462.html
Blueprint: https://tails.boum.org/blueprint/automated_builds_and_tests/autobuild_specs
Parent Task: tails#9614 (closed)
Related issues
- Related to tails#11355 (closed)
- Related to tails#12715 (closed)
- Related to #17070
-
Blocked by #15878 (closed)