> On 7 Nov 2018, at 04:48, Yubin Ruan <[email protected]> wrote:
>
>> I have published as well last week a YouTube Video of how to use the plugin:
>> https://www.youtube.com/watch?v=pyPMeCW-Q5k
>>
>> It is the screen recording of my talk 2 weeks ago in Nice for the
>> JenkinsWorld 2018.
>> Hope it would help to get started using the plugin and provide feedback and
>> contributions.
>>
>> Luca.
>>
>>
>> And if you have any issues, just ping the mailing list :-)
>>
>> Luca.
>
> Many thanks, Luca,
>
> but I got several issues:
>
> 1.In the "Multi-branch pipeline" configuration, SSH is not
> supported. I can only use HTTP.... Are there any way to fix that?
Yes, it only supports HTTP/HTTPS at the moment.
Bear in mind that it would need access to the Gerrit REST API anyway, so you
would need HTTP/HTTPS connectivity to Gerrit anyway.
So then, why don't just use the HTTP/HTTPS URL to clone?
> 2. Can you share the web hook plugin for gerrit? (i.e., the
> "./add-webhook.sh" in your video record)
See the content of the shell script below:
WEBHOOKS_URL=https://gerrit-ci.gerritforge.com/job/plugin-webhooks-bazel-master/lastSuccessfulBuild/artifact/bazel-genfiles/plugins/webhooks/webhooks.jar
curl $WEBHOOKS_URL > $(dirname $0)/plugins/webhooks.jar
(basically just downloading the plugin from Gerrit CI and putting into the
Gerrit's plugins directory, that's it)
> 3. and, can I post message when a specify stage fail/succeed ?,
> i.e., I want to post message to Gerrit inside every single stage, not
> after the whole "stages".
Oh yes, just call the step 'gerritReview' where you need, including a single
stage.
> 4. Can you share your example gerrit configuration file ?
I've used the default gerrit.config of a Dev instance, plus the configuration
for the refsfilter module and the webhooks default settings.
[gerrit]
basePath = git
serverId = 61e561d7-693d-4ed6-b825-5b30f1dac430
canonicalWebUrl = http://localhost:9090/
installModule = com.gerritforge.gerrit.modules.refsfilter.GuiceModule
[database]
type = h2
database = /Users/lucamilanesio/jw2018/gerrit/db/ReviewDB
[noteDb "changes"]
disableReviewDb = true
primaryStorage = note db
read = true
sequence = true
write = true
[container]
javaOptions =
"-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"
javaOptions =
"-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"
user = lucamilanesio
javaHome =
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre
[index]
type = LUCENE
[auth]
type = DEVELOPMENT_BECOME_ANY_ACCOUNT
skipFullRefEvaluationIfAllRefsAreVisible = false
[receive]
enableSignedPush = false
[sendemail]
smtpServer = localhost
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = http://*:9090/
[cache]
directory = cache
[plugin "webhooks"]
connectionTimeout = 3000
socketTimeout = 2500
maxTries = 300
retryInterval = 2000
threadPoolSize = 3
[plugins]
checkFrequency = 10s
>
> --
> Yubin
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/2C353050-1524-4C63-AF80-87E599E4C7DE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.