Re: Jenkins talking to another Jenkins instance
Has anyone seen an issue where when you go to add the post-build action in your job the option for trigger a remote parameterized job is not in the list even though the plugin is installed? On Monday, July 14, 2014 1:01:06 PM UTC-4, pcampbell wrote: That looks like it would do the job. Our jobs predate this plugin so we had to use what was available at the time. From the number of installations for this plugin, it seems that we are not alone in needing this capability... ;-) On Mon, Jul 14, 2014 at 9:49 AM, Jeff preda...@gmail.com javascript: wrote: Have you tried https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Remote+Trigger+Plugin to trigger the remote job? I haven't used it yet so it may not work for your needs, but it is configured as a build step so I believe it blocks until the step completes which would allow you to wait before proceeding to the next step/job for testing. On Mon, Jul 14, 2014 at 10:36 AM, Phillip Campbell phillip@gmail.com javascript: wrote: Just to clarify, by Status in this case, I am checking to see when the remote job has completed, not the actual end result of the job (success/failure/unstable). On Mon, Jul 14, 2014 at 9:30 AM, Seth Floyd se...@sethfloydjr.com javascript: wrote: Awesome! Thanks. Ill try that out and see how that works. On Mon, Jul 14, 2014 at 12:28 PM, Phillip Campbell phillip@gmail.com javascript: wrote: This is something that we need to do as well. We have Jenkins instances distributed globally and in one case, we need to trigger jobs remotely on other Jenkins instances. What we do is have the remote job trigger set to Trigger builds remotely with a specific authentication token. On the local machine, we execute a curl command to the remote job's URL, passing the authentication token and an additional parameter. # Start the build curl $JOB_URL/buildWithParameters?token=AUTH_TOKEN\myParm=abcd if [ ! $? = 0 ]; then exit 1 fi We then use curl with json to poll the remote job for status. If you only care about triggering the job and not the status, you can skip this part. # Poll every sixty seconds until the build is finished JOB_STATUS_URL=${JOB_URL}/lastBuild/api/json while [ $GREP_RETURN_CODE -eq 0 ] do sleep 60 # Grep will return 0 while the build is running: curl --silent $JOB_STATUS_URL | grep result\:null /dev/null GREP_RETURN_CODE=$? done On Mon, Jul 14, 2014 at 7:25 AM, Seth Floyd sethf...@gmail.com javascript: wrote: I currently have 2 Jenkins instances. One does our deployments and the other does automated testing. Is there a way to send a notice from Jenkins1 to Jenkins2 once a build has completed successfully to automatically kick off automated testing jobs? (Before im berated with questions about why we are setup this way...I didn't do it, im just fixing and working with what I was brought in to deal with) 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-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/bIcTx9yZhZY/unsubscribe . To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com javascript:. 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-use...@googlegroups.com javascript:. 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-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- Jeff Vincent See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent -- 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-use...@googlegroups.com javascript:. 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.
Jenkins talking to another Jenkins instance
I currently have 2 Jenkins instances. One does our deployments and the other does automated testing. Is there a way to send a notice from Jenkins1 to Jenkins2 once a build has completed successfully to automatically kick off automated testing jobs? (Before im berated with questions about why we are setup this way...I didn't do it, im just fixing and working with what I was brought in to deal with) 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.
Re: Cannot connect slave Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing
Finally got it to work after i pasted the infor from the private key into the Enter directly field. Even though that doesnt work for another credential where we point to the .pub file using the SSH username with private key option. Thanks any ways. S On Tue, Jun 17, 2014 at 3:22 PM, Daniel Beck m...@beckweb.net wrote: On 17.06.2014, at 20:18, Seth Floyd sethfloy...@gmail.com wrote: Did you ever figure this out? Im getting the same thing and im stumped. I can connect just fine if I ssh from master to the slave using the key...but not when I try to launch the slave from inside Jenkins. The credentials are somehow wrong. Make sure you didn't specify the path to the key file, or your public key, in the Enter directly key field of the SSH credential used for the slave. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/4WA-K3aDNg0/unsubscribe. To unsubscribe from this group and all its topics, 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: Cannot connect slave Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing
Yep...but it does work. It was setup like this before I got here so i know I didnt do that. On Wed, Jun 18, 2014 at 1:34 PM, Daniel Beck m...@beckweb.net wrote: On 18.06.2014, at 16:19, Seth Floyd s...@sethfloydjr.com wrote: where we point to the .pub file using the SSH username with private key option That cannot possibly work. .pub indicates a public key. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/4WA-K3aDNg0/unsubscribe. To unsubscribe from this group and all its topics, 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: Cannot connect slave Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing
Did you ever figure this out? Im getting the same thing and im stumped. I can connect just fine if I ssh from master to the slave using the key...but not when I try to launch the slave from inside Jenkins. On Tuesday, June 18, 2013 10:51:43 AM UTC-4, Kamal Ahmed wrote: I am using Jenkins ver. 1.518 http://jenkins-ci.org/, on Centos 6.4 , and trying to connect to a CentOs 6.4 Slave but getting exception: ERROR: Failed to authenticate as jenkins with credential=a5504c8f-3302-40bd-ab4b-8c689e64c84fjava.io.IOException http://stacktrace.jenkins-ci.org/search?query=java.io.IOException: Publickey authentication failed. at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:264) http://stacktrace.jenkins-ci.org/search/?query=com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKeyentity=method at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:445) http://stacktrace.jenkins-ci.org/search/?query=com.trilead.ssh2.Connection.authenticateWithPublicKeyentity=method at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticate(TrileadSSHPublicKeyAuthenticator.java:92) http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticateentity=method at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:262) http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticateentity=method at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:282) http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticateentity=method at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:918) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.sshslaves.SSHLauncher.openConnectionentity=method at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:479) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.sshslaves.SSHLauncher.launchentity=method at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer$1.callentity=method at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRunentity=method at java.util.concurrent.FutureTask.run(FutureTask.java:138) http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.runentity=method at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.runTaskentity=method at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.runentity=method at java.lang.Thread.run(Thread.java:662) http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.runentity=method Caused by: java.io.IOException http://stacktrace.jenkins-ci.org/search?query=java.io.IOException: Invalid PEM structure, '-BEGIN...' missing at com.trilead.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138) http://stacktrace.jenkins-ci.org/search/?query=com.trilead.ssh2.crypto.PEMDecoder.parsePEMentity=method at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313) http://stacktrace.jenkins-ci.org/search/?query=com.trilead.ssh2.crypto.PEMDecoder.decodeentity=method at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:173) http://stacktrace.jenkins-ci.org/search/?query=com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKeyentity=method ... 12 more [06/18/13 10:45:18] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:923) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:479) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) [06/18/13 10:45:18] [SSH] Connection closed. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from
Job Configuration stuck on Loading
When I go into a job today and click Configuration it gets stuck on LOADING... Ive stopped and restarted Jenkins. Ive backed out and removed the latest plugins that were added or updated. Ive tested in both Chrome and Firefox. One thing I have noticed is that the configuration page loads just fine for Multijob pages but not for actual job pages. Im running Jenkins1.532.2 Anyone have an idea of how to resolve this? Jenkins was working fine for me last night and now this morning this is happening. TIA Seth -- 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: Job Configuration stuck on Loading
Ill try that...we actually were having some network issues this morning so maybe that could be the culprit. On Wednesday, April 30, 2014 1:24:10 PM UTC-4, Seth Floyd wrote: When I go into a job today and click Configuration it gets stuck on LOADING... Ive stopped and restarted Jenkins. Ive backed out and removed the latest plugins that were added or updated. Ive tested in both Chrome and Firefox. One thing I have noticed is that the configuration page loads just fine for Multijob pages but not for actual job pages. Im running Jenkins1.532.2 Anyone have an idea of how to resolve this? Jenkins was working fine for me last night and now this morning this is happening. TIA Seth -- 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: Job Configuration stuck on Loading
Nope...that didnt help. Its weird how its just on a few pages that this happens. I can get to the configuration of Jenkins screen and the config page for Multijobs but not just a generic job. I tried creating a new one also and I get the same loading screen there too. Kinda unsure what else to look at to get this fixed. On Wednesday, April 30, 2014 1:45:17 PM UTC-4, Seth Floyd wrote: Ill try that...we actually were having some network issues this morning so maybe that could be the culprit. On Wednesday, April 30, 2014 1:24:10 PM UTC-4, Seth Floyd wrote: When I go into a job today and click Configuration it gets stuck on LOADING... Ive stopped and restarted Jenkins. Ive backed out and removed the latest plugins that were added or updated. Ive tested in both Chrome and Firefox. One thing I have noticed is that the configuration page loads just fine for Multijob pages but not for actual job pages. Im running Jenkins1.532.2 Anyone have an idea of how to resolve this? Jenkins was working fine for me last night and now this morning this is happening. TIA Seth -- 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: Job Configuration stuck on Loading
Figured it out... Noticed this in the logs.. Apr 30, 2014 1:58:24 PM org.jfrog.hudson.ArtifactoryServer getRepositoryKeys WARNING: Could not obtain local repositories list from 'http://artifactory.xx.com:8081/artifactory': Read timed out We arent using artifactory anymore and I remembered that the ops guys were saying something about taking it down so they must have killed it off. I guess since it doesnt exist anymore. Once I removed the global configs for artifactory my config pages started working again. On Wednesday, April 30, 2014 1:24:10 PM UTC-4, Seth Floyd wrote: When I go into a job today and click Configuration it gets stuck on LOADING... Ive stopped and restarted Jenkins. Ive backed out and removed the latest plugins that were added or updated. Ive tested in both Chrome and Firefox. One thing I have noticed is that the configuration page loads just fine for Multijob pages but not for actual job pages. Im running Jenkins1.532.2 Anyone have an idea of how to resolve this? Jenkins was working fine for me last night and now this morning this is happening. TIA Seth -- 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.