Re: Jenkins is hanging
Hi Mirko, Please, could you provide what appears in jenkins.log? Best regards, Rachel El miércoles, 26 de octubre de 2016, 14:40:41 (UTC+2), SGD53 escribió: > > Hi, > > > > Every time after restarting Jenkins, e. g. due to updates of plug-ins, the > web page stucks in "Please wait while Jenkins is getting ready to work...". > I only can resolve this by restarting the corresponding Windows service > manually. This is my system configuration: > > Jenkins: 2.27 > > OS: Windows Server 2012 R2 > > RAM:4 GB > > > > The attached documents cover the reports of jmap and jstack. > > > > Are there any suggestions how to solve this issue? > > > > Regards > > Mirko > -- 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/22208686-f4d4-4687-b108-3ffd018c94f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Node Build History
Hi Tim, It's not necessary to configure anything special. Please, could you provide more information? Such as Jenkins version, what steps you've followed to set up them, some screenshots and whatever useful in order to understand what's happening. Best regards, Rachel El lunes, 31 de octubre de 2016, 22:26:34 (UTC+1), Tim Webster escribió: > > Hi, > > We've set up a number of Pipeline builds on Jenkins, and for some reason > none of the jobs are showing up in the Node build history (although > non-pipeline jobs do). Is there something you need to do in the > configuration or the Jenkinsfile to enable this? > > 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6d95428b-9b85-4f39-9c32-3c91712ffe2a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Node Build History
Hi, We've set up a number of Pipeline builds on Jenkins, and for some reason none of the jobs are showing up in the Node build history (although non-pipeline jobs do). Is there something you need to do in the configuration or the Jenkinsfile to enable this? 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/22a2d892-04c9-4c59-947b-4c49188abf7b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: Restarting Jenkins master while running jobs?
Hi Daniel > In the current update site, I found several Docker-related plugins, and of > course Pipeline Durable Task Step plugin, which underlies sh/bat Pipeline > build > steps. Thanks for your answer. I guess I should convert my current job to use Pipeline build steps and then use the Pipeline Durable Task Step plugin as you suggest. So far, I have avoided Pipeline but I guess I will have to understand it sooner or later. 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c08b3aa2b7bf426bbf3a9ed982c35a66%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
Re: Encrypt/Decrypt using Groovy
I tried that. It didn't work. Probably when I call from an external Python script there is not state ? Mohan On Monday, 31 October 2016 19:26:41 UTC+5:30, Sean McNamara wrote: > > Instead of getPlainText(), try hudson.util.Secret.toString(secret) > > If that doesn't work, then try printing both the encrypted value and > the plain text from the `secret` object in the encrypt method... if it > gives the result you expect, then yes, there seems to be an issue with > state. It might not be picking the right crypto algorithm if you're > doing this across different JVMs, for example. > > Sean > > On Mon, Oct 31, 2016 at 9:39 AM, Mohan Radhakrishnan > > wrote: > > Hi, > >I have a doubt here. This code encrypts but doesn't decrypt. > Instead > > I get the encrypted string back from the decrypt function. Does it need > > state to be maintained between these two functions ? > > > > Thanks, > > Mohan > > > > def encrypt(server ): > > value = server.run_script(""" > > secret = hudson.util.Secret.fromString("Password") > > println secret.getEncryptedValue() > > """) > > print (value) > > > > def decrypt(server ): > > decryptedvalue = server.run_script(""" > > secret = > > > hudson.util.Secret.fromString("zPc9cFNDcj8RuRIKigYfsTQMiuCrv1lO+Y5qqJXc6RQ=") > > > println secret.getPlainText() > > """) > > return decryptedvalue > > > > -- > > 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 . > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/jenkinsci-users/0afdb0c5-9365-40d5-8e28-7a106dbcca78%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/0173f29e-7686-43c8-8c1e-098edc81338d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Mirror problems for 2.28?
Tracked as https://issues.jenkins-ci.org/browse/INFRA-962 Also, this is a topic for the Jenkins infra mailing list, and it already exists: http://lists.jenkins-ci.org/pipermail/jenkins-infra/2016-October/000935.html > On 31.10.2016, at 14:48, matthew.web...@diamond.ac.uk wrote: > > I see the same problem ( coming from the UK, Monday 31/Oct), and I suspect > that push to the mirrors was either not initiated, or has failed. > Matthew > >>> > is the mirror system partly down? 2.28 is reported by the update center > since yesterday, but > http://mirrors.jenkins-ci.org/war/2.28/jenkins.war is not available (the > whole 2.28 dir is missing.) > Are just some mirrors lagging behind or is it really a problem? > > Björn > > -- > > This e-mail and any attachments may contain confidential, copyright and or > privileged material, and are for the use of the intended addressee only. If > you are not the intended addressee or an authorised recipient of the > addressee please notify us of receipt by returning the e-mail and do not use, > copy, retain, distribute or disclose the information in or attached to the > e-mail. > Any opinions expressed within this e-mail are those of the individual and not > necessarily of Diamond Light Source Ltd. > Diamond Light Source Ltd. cannot guarantee that this e-mail or any > attachments are free from viruses and we cannot accept liability for any > damage which you may sustain as a result of software viruses which may be > transmitted in or with the message. > Diamond Light Source Limited (company no. 4375679). Registered in England and > Wales with its registered office at Diamond House, Harwell Science and > Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom > > > > -- > 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/6836E1DC2DDC174C9D64B7860E5AF5FCB1426A9F%40exchmbx01. > 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/06B38EB8-7C3A-4FB3-8780-AF9B23D43713%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
Re: Restarting Jenkins master while running jobs?
> On 31.10.2016, at 14:28, David Aldrich wrote: > > Is it possible to restart Jenkins master without stopping jobs that are > running on slaves? Any plugin depending on Durable Task Plugin should be able to do this. In the current update site, I found several Docker-related plugins, and of course Pipeline Durable Task Step plugin, which underlies sh/bat Pipeline build steps. -- 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/FCECB8D1-A184-4823-81AE-94014BF61012%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
Re: Encrypt/Decrypt using Groovy
Instead of getPlainText(), try hudson.util.Secret.toString(secret) If that doesn't work, then try printing both the encrypted value and the plain text from the `secret` object in the encrypt method... if it gives the result you expect, then yes, there seems to be an issue with state. It might not be picking the right crypto algorithm if you're doing this across different JVMs, for example. Sean On Mon, Oct 31, 2016 at 9:39 AM, Mohan Radhakrishnan wrote: > Hi, >I have a doubt here. This code encrypts but doesn't decrypt. Instead > I get the encrypted string back from the decrypt function. Does it need > state to be maintained between these two functions ? > > Thanks, > Mohan > > def encrypt(server ): > value = server.run_script(""" > secret = hudson.util.Secret.fromString("Password") > println secret.getEncryptedValue() > """) > print (value) > > def decrypt(server ): > decryptedvalue = server.run_script(""" > secret = > hudson.util.Secret.fromString("zPc9cFNDcj8RuRIKigYfsTQMiuCrv1lO+Y5qqJXc6RQ=") > println secret.getPlainText() > """) > return decryptedvalue > > -- > 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/0afdb0c5-9365-40d5-8e28-7a106dbcca78%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/CAPAActe3Hbu0udfTpyL4hs5j--Q0W2rV9tTB_Zz%3Dg3RfnO%3DZyw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: Mirror problems for 2.28?
I see the same problem ( coming from the UK, Monday 31/Oct), and I suspect that push to the mirrors was either not initiated, or has failed. Matthew >>> is the mirror system partly down? 2.28 is reported by the update center since yesterday, but http://mirrors.jenkins-ci.org/war/2.28/jenkins.war is not available (the whole 2.28 dir is missing.) Are just some mirrors lagging behind or is it really a problem? Björn -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom -- 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/6836E1DC2DDC174C9D64B7860E5AF5FCB1426A9F%40exchmbx01. For more options, visit https://groups.google.com/d/optout.
Encrypt/Decrypt using Groovy
Hi, I have a doubt here. This code encrypts but doesn't decrypt. Instead I get the encrypted string back from the decrypt function. Does it need state to be maintained between these two functions ? Thanks, Mohan def encrypt(server ): value = server.run_script(""" secret = hudson.util.Secret.fromString("Password") println secret.getEncryptedValue() """) print (value) def decrypt(server ): decryptedvalue = server.run_script(""" secret = hudson.util.Secret.fromString("zPc9cFNDcj8RuRIKigYfsTQMiuCrv1lO+Y5qqJXc6RQ=") println secret.getPlainText() """) return decryptedvalue -- 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/0afdb0c5-9365-40d5-8e28-7a106dbcca78%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Restarting Jenkins master while running jobs?
Hi Our Jenkins instance runs some very long-running simulation jobs. These can run for up to 5 weeks. This makes it difficult to schedule restarts for software updates. Is it possible to restart Jenkins master without stopping jobs that are running on slaves? 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/38b3a94bc5f1483e932fdf689783d91d%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
Re: how to create a new account in jenkins
> On 30.10.2016, at 12:57, shivkumar pendam wrote: > > theirs no option to create a new account That would be pretty stupid, if anybody could just register an admin account, right? Check the file JENKINS_HOME/secrets/initialAdminPassword on the file system of the Jenkins master. -- 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/B535AE47-CD09-463C-8326-CEBCBFE2637D%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
Re: Email-Ext and Pipeline Model Definition - How to send email notifications Culprits and Developers as recipients?
> On 31.10.2016, at 00:31, Michael Neale wrote: > > It is most unfortunate that emailext requires the workspace. How else are you going to attach files? -- 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/D05A3E70-DEA2-4549-9E42-1D25F3BB7E16%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
Re: passing variable to bash script in a jenkins pipeline job
> On 30.10.2016, at 18:53, Nabil Ghodbane wrote: > > Well, it runs well on a local command line... On the other hand, it seems > there is a serious issue passing parameters to bash scripts from sh pipeline > command I tried both, and you're right -- it does work in a local shell. However, it also works for me in Pipeline. Pipeline script (with different path): node { def lib_arch='linux-ubuntu-14.04-x86_64-gcc4.8.4' sh ". /Users/danielbeck/foo.sh ${lib_arch}" } Shell script: #!/bin/bash echo $@ Output (excerpt): [Pipeline] sh [foo] Running shell script + . /Users/danielbeck/foo.sh linux-ubuntu-14.04-x86_64-gcc4.8.4 ++ echo linux-ubuntu-14.04-x86_64-gcc4.8.4 linux-ubuntu-14.04-x86_64-gcc4.8.4 [Pipeline] } So something else seems to be going on on your system. Could you provide a complete, minimal reproduction case, and whether your Pipeline plugins are up to date and what the Jenkins version is? Also, did you specify a custom shell executable in the global Jenkins configuration? What shell implementation is taking care of `sh` on your system? Bash? -- 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/4268B45C-28EB-489B-AE9A-C0D342CDC6E1%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
Iterate FileWrapper, fails with shell script within the loop
Problem looping through the result of findFiles. The result from this method returns a org.jenkinsci.plugins.pipeline.utility.steps.fs.FileWrapper node { stage("Publish") { def files = findFiles(glob: '**/*.rpm') for (def file : files) { sh "echo Hello World! ${file.path}" } } Fails with java.io.NotSerializableException: java.util.AbstractList$Itr Trying to use @NonCPS node { stage("Publish") { def files = findFiles(glob: '**/*.rpm') loopFiles(files) } } @NonCPS void loopFiles(files) { for (def file : files) { sh "echo Hello World! ${file.path}" } } It breaks the loop after first item in list. If 3 files found, then there is only one output. However, if I remove the shell script and just use println it loops through all 3 files found. Works if I loop the files first and put the file path in a new list: node { stage("Publish") { def files = findFiles(glob: '**/*.rpm') def packages = [] for (def file : files) { packages.add(file.path) } for (def packagePath : packages) { sh "echo Hello World! ${packagePath}" } } I reckon that FileWrapper is not serializable, hence the problem, but why doesn't the @NonCPS work on all items? -- 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/4efcd7bb-a706-42b0-a7b8-88fdd1434783%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Anybody using the CORS Support Plugin?
Hi, Is so, then have you found it reliable? I had it set up so everything was working fine, but now it doesn't seem to be adding any headers to the files served by Jenkins. Either that or Apache is stripping them off. But I don't think I've changed any settings in either since I had it working. Any suggestions regards Jon -- 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/9ad1052b-9f30-4208-8432-a863440923d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Mirror problems for 2.28?
Hi, is the mirror system partly down? 2.28 is reported by the update center since yesterday, but http://mirrors.jenkins-ci.org/war/2.28/jenkins.war is not available (the whole 2.28 dir is missing.) Are just some mirrors lagging behind or is it really a problem? Björn -- 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/f2a5a219-32d1-4ccd-b95f-f5981ef39918%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.