Jenkins dashboard report with customization

2018-11-06 Thread trupti bhatt


I want to get the jenkins report as in this template:

[image: enter image description here] 

so which plugin will help me to get such kind of report?

I have tried multiple plugins, but no luck. I have tried test analyzer 
report, dashboard view and jenkins matrix and trends plugin. 


I think Groovy scripts may help. can anyone help me on it? 




Thank you,

Trupti Bhatt

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/291de8a3-6bf5-4d5e-ae15-625044d11aaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: collect the result from pipeline triggered downstream jobs

2018-11-06 Thread gustaf . lundh
Perhaps https://wiki.jenkins.io/display/JENKINS/Downstream+Build+Cache+Plugin 
can help you?

It is used 
by https://wiki.jenkins.io/display/JENKINS/Yet+Another+Build+Visualizer+Plugin 
to visualize how builds are triggered.

Essentially, it allows you to easily fetch a list triggered downstream 
builds:

Set downstreamBuilds = BuildCache.getCache().
getDownstreamBuilds(sourceBuild)

/Gustaf

On Tuesday, October 16, 2018 at 3:00:44 PM UTC+2, Vassilena Treneva wrote:
>
> Hey,
>
> I have been trying different ways to collect the result from pipeline 
> triggered downstream jobs without any success. Any idea how to do it?
>
> Apprioach #1 - Mapping the build data trough Cause.UpstreamCause (as 
> suggested here: 
> https://groups.google.com/forum/#!topic/jenkinsci-dev/nNvy6YLgP58):
>
> pipelineIntegrationJobs.each {
> i -> jobs["${nirvanaMajor}.${nirvanaMinor}_${i}"] = {
> build (job: "${nirvanaMajor}.${nirvanaMinor}_${i}", 
> parameters: [
> string(name: 'branch', value: "${svnBranch}", description: 'svn repository 
> url'), 
> string(name: 'buildmajor', value: '10', description: 'release major 
> identifier'),
> string(name: 'buildminor', value: '4', description: 'release minor 
> identifier'),
> string(name: 'fix', value: "${env.fix}", description: 'fix level'), 
> string(name: 'buildnumber', value: "${env.buildNumber}", description: 
> 'artifacts build number'), 
> string(name: 'revision', value: "${env.buildNumber}", description: 
> 'checkout revision'),
> string(name: 'joblabel', value: "${pipelineName}", description: "optional 
> job description")
> ], quietPeriod: 0, propagate: false, wait: true).result
> def upstreamJob = 
> Jenkins.instance.getItem("${nirvanaMajor}.${nirvanaMinor}_${env.JOB_NAME}")
> def job = Jenkins.instance.getItem("${nirvanaMajor}.${nirvanaMinor}_${i}")
> job.builds.each { Run build ->
> if (build.result != null) {
> Cause.UpstreamCause cause = build.getCause(Cause.UpstreamCause.class)
> if (cause.pointsTo(upstreamJob)) {
> println(">" + build.number)
> }
> }
> }
> }
> }
>
> This results in a NPE:
> 05:34:41 Finished
> [Pipeline] script
> [Pipeline] {
> [Pipeline] echo
> 05:34:41 
> [Pipeline] echo
> 05:34:41 Job Status Summary:
> [Pipeline] echo
> 05:34:41 10.4:null
> [Pipeline] echo
> 05:34:41 
> [Pipeline] echo
> 05:34:41 
> [Pipeline] echo
> 05:34:41 Test Results Summary:
> [Pipeline] echo
> 05:34:41 
> [Pipeline] }
> [Pipeline] // script
> [Pipeline] echo
> 05:34:41 Failure
> [Pipeline] }
> [Pipeline] // stage
> [Pipeline] }
> [Pipeline] // withEnv
> [Pipeline] }
> [Pipeline] // timestamps
> [Pipeline] }
> [Pipeline] // withEnv
> [Pipeline] }
> [Pipeline] // node
> [Pipeline] }
> [Pipeline] // stage
> [Pipeline] }
> [Pipeline] // node
> [Pipeline] End of Pipeline
> [BFA] Scanning build for known causes...
> [BFA] No failure causes found
> [BFA] Done. 0s
> java.lang.NullPointerException
> at hudson.model.Cause$UpstreamCause.pointsTo(Cause.java:262)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
> at 
> org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47)
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
> at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157)
> at 
> org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
> at 
> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:133)
> at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155)
> at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)
> at 
> com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
> at 
> pipelineBuilder.call(/FS/fslocal/jenkinsWorkspace/jobs/10.4_release_pipeline/builds/84/libs/templates/vars/pipelineBuilder.groovy:182)
> at 
> com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2030)
> at 
> com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2015)
> at 
> com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2056)
> at 
> pipelineBuilder.call(/FS/fslocal/jenkinsWorkspace/jobs/10.4_release_pipeline/builds/84/libs/templates

Re: Jenkins: user is missing the Overall/Read permission - Issue

2018-11-06 Thread 'David Brown' via Jenkins Users
I get this issue too. Users who have previously managed to log in 
(including myself) find themselves effectively locked out and I have to 
create a new login to work round the issue.

I just tried to follow Ram's suggestion but that did not help.

On Saturday, 3 March 2018 14:07:07 UTC, Poovaraj Thangamariappan wrote:
>
> Hello,
>
> I have created  *manual* user in Manger User and I have configured in  
> Matrix-based 
> security. It is showing Manual user is missing the Overall/Read 
> permission'while login into jenkins.
>
> Pleaes find thebelow screenshot and config.xml file. Please help me to fix 
> this issue.
>
>
>
>
>
>
>
>
>
>
>
> Regards,
> Poovaraj
>
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3564e1bd-d62f-4c84-9988-19948640b722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Alternate Plugin Update Sites

2018-11-06 Thread Randall Becker
Hi All,

Question for the group. I have a *private* Jenkins plugin, that I use 
internally and really would be of no interest to the community as a whole. 
I would, however, like to be able to deploy updates to Jenkins easily, but 
do not want to add the plugin to the common plugin site. Are there 
alternatives I can use for this?

Thanks,
Randall

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1842e5d4-cc55-4651-9181-dd6d1ded5e28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Alternate Plugin Update Sites

2018-11-06 Thread Slide
Juseppe may do what you want (https://github.com/jenkinsci/juseppe)

On Tue, Nov 6, 2018 at 10:17 AM Randall Becker 
wrote:

> Hi All,
>
> Question for the group. I have a *private* Jenkins plugin, that I use
> internally and really would be of no interest to the community as a whole.
> I would, however, like to be able to deploy updates to Jenkins easily, but
> do not want to add the plugin to the common plugin site. Are there
> alternatives I can use for this?
>
> Thanks,
> Randall
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1842e5d4-cc55-4651-9181-dd6d1ded5e28%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcXRNExW8yXRtmx1ocdfePt3i6tHAQ%3D2W1UZ97O8VgMWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Build not failed if node terminated

2018-11-06 Thread Viacheslav Dubrovskyi

Hi,

I use swarm plugin as slave agent. And use GCE for slaves. The problem, 
that node termination, not lead to build fail. It waits manual 
interruption and only after it stops.


In log I see:

Nov 06, 2018 7:29:56 PM jenkins.slaves.DefaultJnlpSlaveReceiver 
channelClosed
WARNING: IOHub#1: 
Worker[channel:java.nio.channels.SocketChannel[connected 
local=/10.142.0.3:42295 
remote=test-centos7-123.c.oro-product-development.internal/10.142.0.5:57866]] 
/ Computer.threadPoolForRemoting [#8371] for test-centos7-123 terminated

java.nio.channels.ClosedChannelException
    at 
org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
    at 
org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
    at 
org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
    at 
jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
    at 
jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at java.lang.Thread.run(Thread.java:748)

In this time in build log I see
[Test] Cannot contact test-centos7-123: 
hudson.remoting.ChannelClosedException: Channel "unknown": Remote call 
on JNLP4-connect connection from 
test-centos7-123.c.oro-product-development.internal/10.142.0.5:57866 
failed. The channel is closing down or has closed down


And build not failed.

How to make build failed if it get such error?

How to reproduce: Run pipeline:

node ('test'){
 stage ("Test"){
   sh """
    for i in 300; do
    sleep 1
    echo \$i
    done
   """
 }
}

And during build working kill java on slave.


--
WBD,
Viacheslav Dubrovskyi

--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8127db92-63b8-9657-c9cb-29e70e1d932e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


cannot create user in jenkins

2018-11-06 Thread dlahr
Hello

When I try to create a user in Jenkins nothing happens.  The page 
refreshes, but the user is not added and nothing else happens.  What I did:
Jenkins --> manage --> manage users --> create user

Fill in information, click "create user" button.  Page appears to refresh 
but forms stays, as filled in.  Checking elsewhere, there is no user added 
to the system.  Screenshot:

[image: Screen Shot 2018-11-06 at 2.16.24 PM.png]


Any ideas?  I don't see anything in the log file, I tried restarting 
Jenkins.


Thanks,

Dave


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bc4f2ada-4574-4f1b-83b9-441731d61ece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cannot create user in jenkins

2018-11-06 Thread Daniel Beck



> On 6. Nov 2018, at 20:17, dl...@foghorntx.com wrote:
> 
> Fill in information, click "create user" button.  Page appears to refresh but 
> forms stays, as filled in.  Checking elsewhere, there is no user added to the 
> system.  Screenshot:
> 

This is probably a known bug (JENKINS-52869). The form validation fails, but 
the UI cannot display the error. Check your browser's developer console for the 
form validation response content, and act accordingly.


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/594A56C9-7736-407A-BD36-01FB700D5D09%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: [Announce] Gerrit Code Review plugin v0.3.1 is out - supports integration with the Gerrit Trigger Plugin

2018-11-06 Thread Yubin Ruan
> 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?
   2. Can you share the web hook plugin for gerrit? (i.e., the
"./add-webhook.sh" in your video record)
   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".
   4. Can you share your example gerrit configuration file ?

--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJYFCiPfe6Kj8PHtE0UwJ6ZM-AGFvcyhPP_z9npawsyWeUSTqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.