Hosting request for new plugin creating a Jira URL out of the Git history/changelog

92 views
Skip to first unread message

Paul Wellner Bou

unread,
Sep 25, 2015, 8:23:44 AM9/25/15
to Jenkins Developers
Github: https://github.com/paulwellnerbou/git-jira-log-jenkins-plugin
jenkins repo name: git-jira-log(-plugin)

Github Username: paulwellnerbou
jenkins username: paulwellnerbou

What the plugin does and how it is used is documented in it's README.md

Thank you, kind regards and a nice weekend,

Paul.

Oleg Nenashev

unread,
Sep 27, 2015, 5:26:32 PM9/27/15
to Jenkins Developers
Seems the core JIRA plugin provides a related functionality (https://issues.jenkins-ci.org/browse/JENKINS-6381). Would it be possible to somehow merge your proposal into this plugin?

пятница, 25 сентября 2015 г., 15:23:44 UTC+3 пользователь Paul Wellner Bou написал:

Paul Wellner Bou

unread,
Sep 27, 2015, 6:24:59 PM9/27/15
to Jenkins Developers
That may be new, I searched several days for something similar and did not find anything. I know that the JIRA plugin is able to create a changelog, but only if the releases are managed by Jira as well.
It is new for me that the Jira plugin was able to scan the actual git history of the workspace. At least, I did not get it to work. I will have a look though again.

Thanks and regards
Paul.

Paul Wellner Bou

unread,
Sep 28, 2015, 1:58:35 AM9/28/15
to jenkin...@googlegroups.com
Good morning,

I had a deeper look at the jenkins-jira-plugin, and no, it is not doing what I am trying to do with my git-jira-log plugin.

First of all: Maybe I should rename it and give it a more generic aim: The logic in my plugin is not about jira, it is mainly about extracting changelogs out of Git: searching automatically for the latest build tags and being able to generate changelogs between branches or just git revisions. The jira filter is actually just one way to filter and represent this information (the only implemented so far).

The jenkins-jira-plugin actually is able to create release notes: But the information of this release notes is not taken out of the git history, it is taken out of Jira, so this only works if a) you use only one project, you can configure only one project key, b) the issues are correctly set with it's fixedVersion.

What I was trying to do with the git-jira-log-plugins was the other way round: Creating automatically a list of tickets worked on between the current tag/branch/revision and the latest released tag, to get all of the issues, even those which may not be maintained correctly in Jira.

As we have a special customized workflow (not that this would be a good thing, but thats another topic), we do not want jenkins to automatically update the workflow nor the fixedVersion in our tickets (the fact that there are commits with a certain ticket number does not mean necessarily that it is fixed).

Thanks and kind regards
Paul.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/6RxOPndNkRo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2ed4f212-b678-4dd8-8107-66fb76c043c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oleg Nenashev

unread,
Sep 29, 2015, 4:19:06 AM9/29/15
to Jenkins Developers
IMHO such generic plugin makes sense. The code is really hardcoded to be git=>jira only, but it's possible to generalize it to "git-changelog-generator". If not, we could also publish it as a "git-jira-changelog-generator". The most of the functionality is located in another library BTW, so I'm not sure how they should be decoupled.

It would be helpful to get a feedback from others before the fork.

P.S: please be also aware about the potential unclosed file leak in your code

понедельник, 28 сентября 2015 г., 8:58:35 UTC+3 пользователь Paul Wellner Bou написал:

Paul Wellner Bou

unread,
Sep 29, 2015, 6:22:01 PM9/29/15
to jenkin...@googlegroups.com
Thank you for the inspiration: I decoupled the logic from the jira functionality and refactored both, the library and the jenkins plugin, even renamed the repositories and artifacts: https://github.com/paulwellnerbou/git-changelog-jenkins-plugin

The documentation now needs a bit more of rework, but I am working on it. As a basic, different sample implementation I added a "basic changelog" generator to the "jirafilter". HTML/PDF/... reports may follow.

This leaves a lot of room for extensions, for other ticket systems or whatever formats of reports, as the key feature is the automatic tag/revision search and changelog generation -- the output format is adjustable with "Processors", included via Java's ServiceLoader. It would be possible to create a completely generic publish action, but I have to look deeper into the jelly configuration and so on.

Which file leak do you mean? The file printstreams for publishing are beeing closed.

Thank you and a nice day,
Paul.

Paul Wellner Bou

unread,
Oct 2, 2015, 4:46:44 PM10/2/15
to jenkin...@googlegroups.com
Good evening,

After a lot of refactoring it works now, even with git workspaces on Jenkins slaves. The README may include more examples, but that will be work for the wiki page, once this plugin might get included in jenkins' plugin collection.

Is there a chance to get it hosted on jenkins?

Thank you and best regards
Paul Wellner Bou

Oleg Nenashev

unread,
Oct 4, 2015, 5:10:24 AM10/4/15
to Jenkins Developers
Hi Paul,

The plugin has been forked: https://github.com/jenkinsci/git-changelog-plugin . You should get an invitation to jenkinsci organization soon.

Welcome aboard!

Best regards,
Oleg Nenashev

пятница, 2 октября 2015 г., 23:46:44 UTC+3 пользователь Paul Wellner Bou написал:

Paul Wellner Bou

unread,
Oct 5, 2015, 11:10:02 AM10/5/15
to Jenkins Developers
Hi,

thank you very much. It worked, wiki page created, release built.

Regards
Paul.

Reply all
Reply to author
Forward
0 new messages