commentlink changes vs hooks-jira plugin

181 views
Skip to first unread message

Marcelo Avila de Oliveira

unread,
Apr 10, 2013, 8:28:46 AM4/10/13
to Repo and Gerrit Discussion
Hi Luca,

Will recent changes in commentlink section (like this) affect the hooks-jira plugin action?

Thanks & regards,

--
Marcelo Ávila de Oliveira
CPqD - Information Technology Engineer

Luca Milanesio

unread,
Apr 10, 2013, 9:05:58 AM4/10/13
to Marcelo Avila de Oliveira, Repo and Gerrit Discussion
Hi Marcelo,
to be honest with you I was hoping that changes like https://gerrit-review.googlesource.com/#/c/44364/ would have come :-)

The answer is yes, hooks-jira will make use of that feature as it makes a lot of sense: different projects may want to enforce different logic on Jira issues and even connecting to different Jira instances potentially.

I am planning to port all the plugins (hooks-jira, hooks-its, gitblit) to the new Gerrit 2.6 stable branch.
(hence the discussion thread about plugin compatibility with Gerrit and how to declare / enforce it)

Luca.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marcelo Avila de Oliveira

unread,
Apr 10, 2013, 9:14:36 AM4/10/13
to Luca Milanesio, Repo and Gerrit Discussion
Great! We really need this feature (different projects with different logic on Jira issues).

Thanks a lot,

--
Marcelo Ávila de Oliveira
CPqD - Information Technology Engineer


2013/4/10 Luca Milanesio <luca.mi...@gmail.com>

Dave Borowitz

unread,
Apr 10, 2013, 1:29:25 PM4/10/13
to Luca Milanesio, Marcelo Avila de Oliveira, Repo and Gerrit Discussion
FYI, you probably knew this, but the change you linked is not in 2.6.

Luca Milanesio

unread,
Apr 10, 2013, 1:34:32 PM4/10/13
to Dave Borowitz, Marcelo Avila de Oliveira, Repo and Gerrit Discussion
Oops ... any chance to cherry pick on 2.6 ? Is was a cool feature :-)

---------
Sent from my iPhone
Luca Milanesio
Skype: lucamilanesio

Brad Larson

unread,
Apr 10, 2013, 3:16:58 PM4/10/13
to Repo and Gerrit Discussion, David Borowitz


On Apr 10, 12:29 pm, Dave Borowitz <dborow...@google.com> wrote:
> FYI, you probably knew this, but the change you linked is not in 2.6.

Hey Dave, I was unaware of this new feature, very cool!

I was curious if you allow inheritance with this change? Can I set a
commentlink config on All-Projects and have it be used by everything
on my server? Or must I copy-paste the config to each individual
project?

Keep up the good work :)
Brad


>
> On Wed, Apr 10, 2013 at 6:05 AM, Luca Milanesio <luca.milane...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi Marcelo,
> > to be honest with you I was hoping that changes like
> >https://gerrit-review.googlesource.com/#/c/44364/would have come :-)
>
> > The answer is yes, hooks-jira will make use of that feature as it makes a
> > lot of sense: different projects may want to enforce different logic on
> > Jira issues and even connecting to different Jira instances potentially.
>
> > I am planning to port all the plugins (hooks-jira, hooks-its, gitblit) to
> > the new Gerrit 2.6 stable branch.
> > (hence the discussion thread about plugin compatibility with Gerrit and
> > how to declare / enforce it)
>
> > Luca.
>
> > On 10 Apr 2013, at 14:28, Marcelo Avila de Oliveira <mav...@cpqd.com.br>
> > wrote:
>
> > Hi Luca,
>
> > Will recent changes in commentlink section (like this<https://gerrit-review.googlesource.com/#/c/44364/>)
> > affect the hooks-jira plugin action?
>
> > Thanks & regards,
>
> > --
> > *Marcelo Ávila de Oliveira*
> > CPqD - Information Technology Engineer
> > Tel.: +55 19 3705-4125
> > mav...@cpqd.com.br
> >www.cpqd.com.br
>
> > --
> > --
> > To unsubscribe, email repo-discuss...@googlegroups.com
> > More info athttp://groups.google.com/group/repo-discuss?hl=en
>
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Repo and Gerrit Discussion" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to repo-discuss...@googlegroups.com.
> > For more options, visithttps://groups.google.com/groups/opt_out.
>
> >  --
> > --
> > To unsubscribe, email repo-discuss...@googlegroups.com
> > More info athttp://groups.google.com/group/repo-discuss?hl=en

Shawn Pearce

unread,
Apr 10, 2013, 3:21:12 PM4/10/13
to Luca Milanesio, Dave Borowitz, Marcelo Avila de Oliveira, Repo and Gerrit Discussion
Nope. It missed 2.6. It will be in 2.7.

On Wed, Apr 10, 2013 at 10:34 AM, Luca Milanesio

Dave Borowitz

unread,
Apr 10, 2013, 3:21:58 PM4/10/13
to Brad Larson, Repo and Gerrit Discussion
On Wed, Apr 10, 2013 at 12:16 PM, Brad Larson <bkla...@gmail.com> wrote:


On Apr 10, 12:29 pm, Dave Borowitz <dborow...@google.com> wrote:
> FYI, you probably knew this, but the change you linked is not in 2.6.

Hey Dave, I was unaware of this new feature, very cool!

You may also be interested in https://gerrit-review.googlesource.com/44440 :)
 
I was curious if you allow inheritance with this change?  Can I set a
commentlink config on All-Projects and have it be used by everything
on my server?  Or must I copy-paste the config to each individual
project?

Yes, inheritance should just work. If a child overrides a section by name from a parent, the child's definition will be used, but if there is no override, the section is inherited. This is alluded to in Documentation/config-gerrit.txt at head, but perhaps it should be made more clear. See also commentlink.<name>.enabled for some more subtle details.

Alex Blewitt

unread,
Apr 10, 2013, 4:24:36 PM4/10/13
to Dave Borowitz, Brad Larson, Repo and Gerrit Discussion
On 10 Apr 2013, at 20:21, Dave Borowitz <dbor...@google.com> wrote:

On Wed, Apr 10, 2013 at 12:16 PM, Brad Larson <bkla...@gmail.com> wrote:
 
I was curious if you allow inheritance with this change?  Can I set a
commentlink config on All-Projects and have it be used by everything
on my server?  Or must I copy-paste the config to each individual
project?

Yes, inheritance should just work. If a child overrides a section by name from a parent, the child's definition will be used, but if there is no override, the section is inherited. This is alluded to in Documentation/config-gerrit.txt at head, but perhaps it should be made more clear. See also commentlink.<name>.enabled for some more subtle details.

It would be good to have each project have not only its own ticketing instance(s) as when you have many projects on a single gerrit instance they may not share the same issue tracker. For example the mirror of Apache projects on googlesource may have one of a few different Apache issue tracking systems, and when combined with Eclipse mirrors that use bugzilla you end up with both different formatted links as well as different back end systems. 

There may also be multiple instances of the same type of issue tracker due to organisational changes over time: for example Apache lists 3 instances of Bugzilla:


So being able to configure this for a per project basis and obtain the config from a project will be very useful. 

Alex

Luca Milanesio

unread,
Apr 11, 2013, 2:21:19 AM4/11/13
to Alex Blewitt, Dave Borowitz, Brad Larson, Repo and Gerrit Discussion
Yes, that is exactly what I had in mind for the new hooks-its.

You have one project with Jira integration and another with Bugzilla (or orher Jira instances).
It is going to be a reality with Gerrit 2.7.

Luca

---------
Sent from my iPhone
Luca Milanesio
Skype: lucamilanesio

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

Luciano Carvalho

unread,
Apr 11, 2013, 10:00:19 AM4/11/13
to Luca Milanesio, Brad Larson, David Borowitz, Alex Blewitt, Repo and Gerrit Discussion

When you say project you don't mean every single project, right?

I hope this setting will be inheritable from a patent.

Luca Milanesio

unread,
Apr 11, 2013, 10:35:37 AM4/11/13
to Luciano Carvalho, Brad Larson, David Borowitz, Alex Blewitt, Repo and Gerrit Discussion
Yep, so you can define project hierarchies and inherit their configuration settings.

Luca.

Bertram Karch

unread,
Aug 9, 2013, 2:55:00 PM8/9/13
to repo-d...@googlegroups.com
Hi,

I am very interested in the jar file from hooks-its, hooks-jira for gerrit 2.7 cause I can not build them for myself, I get an unresolved dependency
from gerrit-plugin-api and can not find the source for that.

Is there a place where I can download the jars?

Bertram

David Pursehouse

unread,
Aug 11, 2013, 10:59:15 PM8/11/13
to repo-d...@googlegroups.com
On 08/10/2013 03:55 AM, Bertram Karch wrote:
> Hi,
>
> I am very interested in the jar file from hooks-its, hooks-jira for
> gerrit 2.7 cause I can not build them for myself, I get an unresolved
> dependency
> from gerrit-plugin-api and can not find the source for that.
>
> Is there a place where I can download the jars?
>

No, you need to build it locally from the Gerrit source tree:

$ cd gerrit-plugin-api
$ mvn clean package install

See also previous discussion [1] which has a couple of other tips in
case that doesn't work.

[1] https://groups.google.com/d/msg/repo-discuss/EZ-o2ER_1L4/qQRC_7MmQbgJ


Reply all
Reply to author
Forward
0 new messages