Hello,
I have gerrit 2.9.4 installed from official release with its-jira-2.9-SNAPSHOT.jar plugin downloaded from:
http://ci.gerritforge.com/view/Plugins-stable-2.9/Platform is ubuntu 14.04 with oracle-java-8.
Database is postgresql
Authentication is LDAP via apache proxy.
JIRA is 6.4 hosted by Atlassian cloud. The RPC module is installed correctly on it.
gerrit.config: (only relevant pieces)
[its-jira]
url =
https://xxx.atlassian.net username = yyy
commentOnChangeAbandoned=true
commentOnChangeCreated=true
commentOnChangeMerged=true
commentOnChangeRestored=true
commentOnCommentAdded=false
commentOnFirstLinkedPatchSetCreated=true
commentOnPatchSetCreated=true
commentOnRefUpdatedGitWeb=true
[commentLink "its-jira"]
match = JI:([A-Z]+-[0-9]+)
html = <a href=\"
https://xxx.atlassian.net/browse/$1\">$1</a>
association = MANDATORY
secure.config: (only relevant pieces)[its-jira]
password = ...
its/action.config:
[rule "patch-set"]
event-type = patchset-created
action = add-comment A new patchset was added to the Gerrit change
action = log-event
[rule "merged"]
event-type = change-merged
action = add-standard-comment
action = log-event
[rule "verified_no"]
event-type = comment-added
approval-Verified = -1
action = add-comment Verification by Jenkins failed
action = log-event
[rule "verified_yes"]
event-type = comment-added
approval-Verified = +1
action = add-comment Verification by Jenkins was successful
[rule "ref-updated"]
event-type = ref-updated
action = add-standard-comment
For debugging I added log4j config to gerrit.config
[container]
javaOptions = -Dlog4j.configuration=file:///var/lib/gerrit2/server/etc/log4j.properties
log4j.properties:# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
http://www.apache.org/licenses/LICENSE-2.0#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
log4j.rootCategory=DEBUG, file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=/var/lib/gerrit2/server/logs/my.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
log4j.appender.stderr=org.apache.log4j.ConsoleAppender
log4j.appender.stderr.target=System.err
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern=[%d] %-5p %c %x: %m%n
log4j.logger.com.google.gerrit=INFO
# Silence non-critical messages from MINA SSHD.
#
log4j.logger.org.apache.mina=WARN
log4j.logger.org.apache.sshd.common=WARN
log4j.logger.org.apache.sshd.server=WARN
log4j.logger.org.apache.sshd.common.keyprovider.FileKeyPairProvider=INFO
log4j.logger.com.google.gerrit.sshd.GerritServerSession=WARN
# Silence non-critical messages from Jetty.
#
log4j.logger.org.eclipse.jetty=INFO
# Silence non-critical messages from mime-util.
#
log4j.logger.eu.medsea.mimeutil=WARN
# Silence non-critical messages from openid4java
#
log4j.logger.org.apache.http=WARN
log4j.logger.org.apache.xml=WARN
log4j.logger.org.openid4java=WARN
log4j.logger.org.openid4java.consumer.ConsumerManager=FATAL
log4j.logger.org.openid4java.discovery.Discovery=ERROR
log4j.logger.org.openid4java.server.RealmVerifier=ERROR
log4j.logger.org.openid4java.message.AuthSuccess=ERROR
# Silence non-critical messages from c3p0 (if used).
#
log4j.logger.com.mchange.v2.c3p0=WARN
log4j.logger.com.mchange.v2.resourcepool=WARN
log4j.logger.com.mchange.v2.sql=WARN
# Silence non-critical messages from Velocity
#
log4j.logger.velocity=WARN
# Silence non-critical messages from apache.http
log4j.logger.org.apache.http=WARN
Log shows that it is connecting to JIRA correctly on startup:2015-01-17 17:23:41 DEBUG JiraItsFacade:196 - Connecting to jira at URL
https://xxx.atlassian.net2015-01-17 17:23:45 INFO JiraItsFacade:180 - Connected to
https://xxx.atlassian.net as username=yyy, token=zzz
When I submit a patch in the log I can see that it is processing the hooks. I don't see any error message, but the comment does not show up in JIRA.
Debug log is attached, containing startup and one connection where I push a new change set to the server.
Anything I missed in the config?
Thanks,
Karoly