Lookup the ID from the full name (Jenkins )

2019-07-17 Thread krish
Hi all, I am implementing an idea to generate name from the fullname defined in the jenkins. There is document under jenkins on how to generate it. https://javadoc.jenkins-ci.org/hudson/model/User.html. Please let me know, if anyone implemented this setup. Thanks Krish -- You received this

Re: Jenkins Agents getting disconnected

2019-07-17 Thread Sverre Moe
I cannot see any specific plugins in the stacktrace. There are several duplicate threads. Here are some of them. Most common denominator seems to be about SSH. Thread 29360: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise) - java.lang.Object.

Re: Jenkins Agents getting disconnected

2019-07-17 Thread Ivan Fernandez Calvo
Those BLOCKED threads should be related to some plugin or class, see the stack trace on the thread dump to try to figure out which one is, then seems the root cause of your problem. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscri

What is the scripted pipeline equivalent of 'reuseNode'?

2019-07-17 Thread Nicholas Brown
I'm looking for answer to the same question someone ask here: https://stackoverflow.com/questions/50829491/scripted-jenkinsfile-docker-agent-how-to-specify-the-reusenode-flag-and-is-it-r node { stage('foo') { docker.image('debian:stretch').inside { // Want the same workspace. (Agent i

Re: Jenkins Agents getting disconnected

2019-07-17 Thread Sverre Moe
I ran jstack on Jenkins, and many of the threads had state BLOCKED. However after a restart most of the threads are BLOCKED. Not sure if it is an issue here. After a restart Jenkins starts with aprox 200 threads open. When I got problem with disconnected agents, the thread count reached 500. ons

Re: Jenkins Agents getting disconnected

2019-07-17 Thread Sverre Moe
It seems to be the monitoring that gets the agents disconnected. Got this in my log file this last time they got disconnectd. Jul 17, 2019 11:58:22 AM hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtExc eption SEVERE: A thread (Timer-3450/103166) died

Re: Jenkins Agents getting disconnected

2019-07-17 Thread Sverre Moe
We have had to blissfull days of stable Jenkins. Today two nodes are disconnected and they will not come back online. What is strange is it is the same two-three nodes every time. Running disconnect on them through the URL http://jenkins.example.com/jenkins/computer/NODE_NAME/disconnect, does no