Using Containers (pros / cons)
Hi I'm in the process of migrating some Jenkins installations from old 2003 servers to some newer ones. The old setup uses jetty and some intricate java wrapper to start each instance. I.e. the Jetty home is installed on one “location” and the Jenkins home directory is located in a different folder/dir. There is a one-one ratio between the jetty “installs” and the Jenkins instances. Setup: 5+ Jenkins Instances, each instance 20- 50 jobs. (win 2008 server) Question: What’s the “best practices” when configuring such an environment, use container or not? -- 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. For more options, visit https://groups.google.com/d/optout.
Force jenkins to refresh the scheduler label information
Hi, We use jenkins along with the libvirt plugin that automatically start up slaves when jobs containing matching labels are placed in the job queue. I assign labels dynamically to the slave images by means of a groovy script that monitors the build queue at specified intervals. This works but I have some issues that I do not think have anything to do with libvirt plugin but rather the way the jenkins scheduler works (I might be wrong). - When there are jobs in the queue with the label pickMe and I assign that label to the slave that I want libvirt to start, there is a delay of a couple of minutes before the slave is started. - If I manually start the slave just after the label is assigned, the job with label pickMe waits in the job queue for a couple of minutes (while there is an online slave with the label pickMe). - This gives me a feeling that the label data of the slaves are updated on a periodic interval. Is there any way I can manually force an update so that this delays will go away? Any ideas will be appreciated. Regards Hendrik -- 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. For more options, visit https://groups.google.com/d/optout.
RE: Slaves fail to launch since plugin upgrade
Hi Just to let you know that this problem was not caused by plugin updates but by a DNS issue. It is now fixed. As a suggestion, a better error message would be helpful to diagnose such issues. Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 17 March 2014 13:41 To: jenkinsci-users@googlegroups.com Subject: Slaves fail to launch since plugin upgrade Hi I am running Jenkins 1.552. I upgraded to the latest verstion of the Active Directory (1.34) and Parameterised Trigger plugin (1.24) and Static Analysis plugin (1.56). Now many of our slaves do not launch: Connecting to r102 ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins java.net.UnknownHostExceptionhttp://stacktrace.jenkins-ci.org/search?query=java.net.UnknownHostException: rsds102 at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source) at java.net.InetAddress.getAddressFromNameService(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName(Unknown Source) at java.net.InetAddress.getAllByName(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:202) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:228) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I have tried rolling back the Active Directory and Parameterised Trigger plugins to their previous versions but the problem remains. Any suggestions as to what is going wrong please? Best regards David -- 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. For more options, visit https://groups.google.com/d/optout.
Exclusion Plugin and non-sequential Matrix Jobs
I recently moved to using the exclusion plugin from locks and latches and while the plugin works very well, it has had the negative effect of making my matrix jobs run sequentially. I don't understand why the plugin should treat each axis as a separate build that needs exclusive control. If that was desired, the matrix job already has the option to run each configuration sequentially. Does anyone know of a workaround short of breaking up my matrix job? -- 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. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Master [Execute Shell] Host Key Verification Failed
I guess the answer to this is that : If SSH isnt set up properly on the machine your trying to SSH into, then the jenkins commands will fail. To test things : ## become the jenkins user: su jenkins -s /bin/bash ## Now try to ssh into the machine , mimicking the method you configured for the slave: ssh root@my_slave If this fails, then you know that the problem isn't necssarily in jenkins, but either 1) sshd configuration on slave OR 2) ssh configuration on the master In this case i think the solutoin was simply that we had to fiddle to allow password based auth on the slave (etc/ssh/sshd_config) , as well as on the master client (/etc/ssh/ssh_config). On Monday, March 17, 2014 7:37:46 PM UTC-4, Jonathan Cope wrote: Hello, I'm new to Jenkins have some issue getting my jenkins master to connect to my slave via SSH. My setup: 1. AWS EC2 instances ( 2 ) - m1.medium 2. Fedora-x86_64-20-20131211.1-sda - AMI 3. Jenkins ver. 1.555 4. Passwordless Authentication from master to slave When I input the credentials user:jenkins credentials: master ~/.ssh OR direct ssh key input It fails, with the log producing: [03/17/14 23:08:24] [SSH] Opening SSH connection to ec2-000.00.00.000-us-west-2.compute.amazonaws.com:22 http://ec2-54-186-69-58.us-west-2.compute.amazonaws.com:22/. [03/17/14 23:08:24] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1143) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:648) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:642) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) [03/17/14 23:08:24] [SSH] Connection closed. [03/17/14 23:08:24] Launch failed - cleaning up connection I've been trying to diagnose the problem by running a simple job that passes to the command line: ssh -Tv $usern...@ec2-000.00.00.000-us-west-2.compute.amazonaws.com:22 http://ec2-54-186-69-58.us-west-2.compute.amazonaws.com:22/ or ssh -Tv $username@PRIVATE-IP where username= root, jenkins, fedora, or no username This method consistently produces: Started by timer Building on master in workspace /var/lib/jenkins/jobs/test_jenkins/workspace [workspace] $ /bin/sh -xe /tmp/hudson5026502830242434855.sh + ssh -Tv slave ls ### or username@slave OpenSSH_6.4, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 51: Applying options for * debug1: Connecting to slave [##PRIVATE-IP##] port 22. debug1: Connection established. debug1: identity file /var/lib/jenkins/.ssh/id_rsa type -1 debug1: identity file /var/lib/jenkins/.ssh/id_rsa-cert type -1 debug1: identity file /var/lib/jenkins/.ssh/id_dsa type -1 debug1: identity file /var/lib/jenkins/.ssh/id_dsa-cert type -1 debug1: identity file /var/lib/jenkins/.ssh/id_ecdsa type -1 debug1: identity file /var/lib/jenkins/.ssh/id_ecdsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.3 debug1: match: OpenSSH_6.3 pat OpenSSH* debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-ctr hmac-m...@openssh.com javascript: none debug1: kex: client-server aes128-ctr hmac-m...@openssh.com javascript: none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: RSA # key valuedebug1: read_passphrase: can't open /dev/tty: No such device or address Host key verification failed. Build step 'Execute shell' marked build as failure Finished: FAILURE Hours of googling have produced myriad posts about this but I haven't found a single working solution. -- 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. For more options, visit https://groups.google.com/d/optout.
Jenkins OutOfMemory since recent upgrade
hi list, I'm new on the list. I've been a happy Jenkins user (and Hudson before) for a couple of years now and never had issues I couldn't fix myself. We use Jenkins at work to build all sorts of projects: java, flash, php, javascript. Most builds are ANT-based. But now I have a problem: Since a recent upgrade Jenkins has been throwing java.lang.OutOfMemoryError: Java heap space after a clean restart within 60 minutes. Setup: Master on Linux (Ubuntu, installed using apt from http://pkg.jenkins-ci.org/debian) - about 50 projects enabled - not a lot of builds being performed (as in: idle most of the time, maybe a couple of builds a day) - most projects poll SVN every 5 minutes - 900M memory allocated to the VM Heap (actually I've just changed that to 1300M) Slave on OSX (java web start) - does builds for most active projects We have one screen running a 'Wall display' continuously. Shutting down this screen does not fix the problem. (I tried since I suspected that it might) We're now on 1.555, but it started before this release. I've done some analysis using VisualVM and made a couple of heap dumps. The heap shows a repeating pattern of about 4 minutes memory increasing by about 300MB, followed by GC sweep that removes most of the allocated objects but adds about 40MB to the bulk that cannot be collected. What I find is that if I take 2 memory snapshots A LOT of String and char[] have been created inbetween (roughly 30 over a 10 minute timespan) and about half that amount of java.util.HashMap$Entry. This might have nothing to do with the source of the problem, but it is I suspect the SVN polling to have a hand in this, or some other non-build process, as the Heap memory also increases when there are no builds running. Does anyone have a tip on how to resolve this issue? I'm ok with making custom java builds of jenkins myself and have full access to the build machine. Simon -- 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. For more options, visit https://groups.google.com/d/optout.
Re: ssh agent forwarding in jenkins is not working
Stupid question, but is the user you are running jenkins as the same user you tried to ssh with from the command line doing the ssh -A user@host? I've never set up a slave using sshagent, but have had great success with just launching via ssh, as long as the user jenkins runs as can ssh to the slave without a password. On Sun, Mar 16, 2014 at 10:51 PM, sesca sesca.syst...@gmail.com wrote: Hi Folks, Did somebody got a chance to look into this? Regards On Friday, March 14, 2014 7:45:38 PM UTC+5:30, sesca wrote: Hi Folks, I seek your help in one of my doubts posted here:- http://stackoverflow.com/questions/22406751/sshagent- forwarding-in-jenkins-is-not-working Looking forward to a solution to my problem. Thanks -- 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. 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. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins OutOfMemory since recent upgrade
This happened to me. I had to disable the disk usage plugin. Also you need to go to Manage Jenkins, clean old data to remove its entries from the job config files. On Tue, Mar 18, 2014 at 1:20 PM, Simon Groenewolt simon.groenew...@gmail.com wrote: hi list, I'm new on the list. I've been a happy Jenkins user (and Hudson before) for a couple of years now and never had issues I couldn't fix myself. We use Jenkins at work to build all sorts of projects: java, flash, php, javascript. Most builds are ANT-based. But now I have a problem: Since a recent upgrade Jenkins has been throwing java.lang.OutOfMemoryError: Java heap space after a clean restart within 60 minutes. Setup: Master on Linux (Ubuntu, installed using apt from http://pkg.jenkins-ci.org/debian) - about 50 projects enabled - not a lot of builds being performed (as in: idle most of the time, maybe a couple of builds a day) - most projects poll SVN every 5 minutes - 900M memory allocated to the VM Heap (actually I've just changed that to 1300M) Slave on OSX (java web start) - does builds for most active projects We have one screen running a 'Wall display' continuously. Shutting down this screen does not fix the problem. (I tried since I suspected that it might) We're now on 1.555, but it started before this release. I've done some analysis using VisualVM and made a couple of heap dumps. The heap shows a repeating pattern of about 4 minutes memory increasing by about 300MB, followed by GC sweep that removes most of the allocated objects but adds about 40MB to the bulk that cannot be collected. What I find is that if I take 2 memory snapshots A LOT of String and char[] have been created inbetween (roughly 30 over a 10 minute timespan) and about half that amount of java.util.HashMap$Entry. This might have nothing to do with the source of the problem, but it is I suspect the SVN polling to have a hand in this, or some other non-build process, as the Heap memory also increases when there are no builds running. Does anyone have a tip on how to resolve this issue? I'm ok with making custom java builds of jenkins myself and have full access to the build machine. Simon -- 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. 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. For more options, visit https://groups.google.com/d/optout.
Git polling is suspended when job is running
I have a Jenkins maven job using the git plugin, and it is configured to monitor multiple branches. Sometimes, I see that when the job is running, polling appears to be suspended, and so no concurrent jobs will trigger. Other times, I see multiple job runs being triggered with the same git tag. Have I misconfigured the git attributes in my job? Is there a way to get the git plugin to reliably trigger concurrent jobs (on the same and other branches)? Jenkins 1.540 - Rich Carr -- 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. For more options, visit https://groups.google.com/d/optout.
Re: Anyone know.of/use an dashboardable/tablular/trendable arbitrary number plugin?
What language are you interested in? Sounds like SonarQube is right up your alley. Anything like that in existence that anyone knows about? -- 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. For more options, visit https://groups.google.com/d/optout.
Running groovy via Jenkins-CLI.jar
*The Original Issue* I have a couple of heavily used Windows 7 slaves that I prefer to see rebooted daily, the reboot job will not start while any other job running so it can sometimes take many hours before it finds a free moment where it can kick off a reboot. *My Solution* Was to write a script (vbscript running on the slave) to take the node offline, wait till node idle, reboot, on restart put the node back online. From my research this seems to be a common approach, although I'm not sure anyone has tried using vbscript... *Assistance Required* I'm getting extremely frustrated with the API and CLI, the api has the functionality I require but does not support authentication (at least I cannot get authentication working with vbscript), while the cli has the authentication but not the functionality. I figure that groovy script run by the CLI utility would probably be the best solution, however I am at a loss as to where to start. Can anyone point me at an example which ideally explains how to run groovy via CLI? Preferably it would demonstrate checking if node idle and taking node offline. Restarting slaves seems to be a fairly standard requirement so I'm surprised that there's not better support out of the box. -- 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. For more options, visit https://groups.google.com/d/optout.