Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Venkatapathi Jaligama
created ssh keys using ssh-keygen from git bash on windows, it works, Thank you very much Mark Regards, Venkat On Wed, Apr 10, 2019 at 1:54 PM Mark Waite wrote: > I'd create the keys on Windows using the ssh-keygen command on Windows. > OpenSSH on Windows will be consuming the keys. > > On Wed,

Jenkins Linux

2019-04-10 Thread kripa joy
How can I locate the jenkins.xml in linux machine? -- 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 d

Jenkins Linux

2019-04-10 Thread kripa joy
Hi How do you pass an environment variable to jenkins when its run as a service in linux machine? I have my Jenkins installed in windows in which I have a file called Jenkins.xml where I can pass the arguments. But in Linux am not able to see jenkins.xml file. or How can I pass the arguments.

Re: Is pipeline timeout suppose to work?

2019-04-10 Thread Kevin Chow
Hi Jer, I'd like to followup if you figured out how to do timeout with Jenkins Scripted Pipeline. I'm looking into a solution to resolve it. I have something like but it doesn't work out for me. timeout(5) { node("docker") { sh""" //do something """ } } Thanks, Kevin On Wednesday, July

Pipeline with Staging builds before Release

2019-04-10 Thread Sverre Moe
Does anyone use Jenkins Pipeline with Staging? To stage a build (hold it back) until some criteria has been met. No user interaction or manual process involved, fully automatic. We have N Multibranch pipeline jobs in Jenkins with various dependencies on each other. When building a release we ne

Re: Opinions about aggressive reuse strategy for Jenkins pipelines

2019-04-10 Thread Ivan Fernandez Calvo
It is a fair approach, however my opinion is that the pipeline definition (stages and steps) should be in the project pipeline (Jenkinsfile), in the shared library we have only steps that make only one thing an they make it well or steps that combine several others, every step has his own unit t

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Mark Waite
I'd create the keys on Windows using the ssh-keygen command on Windows. OpenSSH on Windows will be consuming the keys. On Wed, Apr 10, 2019 at 11:43 AM Venkatapathi Jaligama wrote: > Hello Mark, > > First time i created key on linux, second-time I created on windows slave > from putty gen and co

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Venkatapathi Jaligama
Hello Mark, First time i created key on linux, second-time I created on windows slave from putty gen and convert to openssh format and then use the keys, even these keys work for linux slaves but not for windows slave, gives invalid format On Wed, Apr 10, 2019 at 1:38 PM Mark Waite wrote: > I'v

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Mark Waite
I've seen problems in the past where I needed to generate the private key / public key pair on the machine that would be using the key. When you created the private key, did you run ssh-keygen on the Windows computer that is using the key? If not, you might try that. On Wed, Apr 10, 2019 at 11:2

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Venkatapathi Jaligama
Hello Mark, Thank you for you prompt response, I have already tested this scenario also removed all the jeys from windows slave and only use the jenkins credentials still does not work, I generated new keys and added the private key in the jenkins credentials and public key in Gitlab still same iss

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Mark Waite
Compare the contents of the private key definition in the Jenkins credentials UI with the private key that is being used on the Windows agent. If the key is incorrectly defined in the Jenkins credentials, that might cause the problem you're seeing. Move (or hide) all other private keys on the Win

Re: how to derive HTTP link to workspace of a scripted parallel pipeline

2019-04-10 Thread Viacheslav Dubrovskyi
Hi monger_39 The job keep logs in 2 files: log and log-index You can read more in https://github.com/jenkinsci/jep/blob/master/jep/210/README.adoc#replace-aggregation-with-single-log-stream But how to find this numbers? 1. You can write specific text to log (for example "Run TESTENV=TestEnv

Re: Send mail to mailbox when there's an infrastructure fail

2019-04-10 Thread Sarfroz Basha
Hi Aaron, Thanks for your reply. Its very helpful to me. Can you please explain steps to create freestyle job triggered by cron in Jenkins. Whenever checks into the Gitserver, if Gitserver was down automatically email notification need to come. Regards, Sarfroz Basha On Wednesday, April 10

Re: How to pass a class instance in a jenkins pipeline script?

2019-04-10 Thread Slide
If you mark the descriptors for the classes with @Symbol, you can use a shorthand to access the steps. You would need to make your Input class a Describable and add a descriptor for it to work for that. On Tue, Apr 9, 2019 at 9:51 PM touseef wrote: > > > On Wednesday, 10 April 2019 09:44:31 UTC+

Re: Calling java static methods from groovy dsl

2019-04-10 Thread Aaron Digulla
This is strange. My first guess would be that the class isn't on the classpath of the script but then, the import should fail as well. Is there a reason why you omitted the import in the code sample you pasted? Does it work when you call it before the try{}? Can you call other methods of the cl

Re: Send mail to mailbox when there's an infrastructure fail

2019-04-10 Thread Aaron Digulla
Hi Sarfroz, To make sure I understand you correctly: - Your Git server was down - Jenkins did start a job - The job tried to check out the code from Git - That step failed - You didn't receive a mail for this specific failure (usually, it works) - You're using Scripted Pipeline, not Declarative P

Re: Opinions about aggressive reuse strategy for Jenkins pipelines

2019-04-10 Thread Aaron Digulla
Hi David I'm describing all of this for background. What I'm asking the community > is, is this a reasonable strategy? I can't help the feeling that this is > taking reusability a bit too far. I can't give any technical arguments > against it, so I'm just looking for some perspective. > I th

How does "Build whenever a SNAPSHOT dependency is built" work?

2019-04-10 Thread Aaron Digulla
Hello, Is there documentation how this feature works? I'm especially interested how it behaves when jobA builds a branch X for project A and project B has a dependency on A. Both A and B are multi-branch pipeline projects. Will that trigger a build of branch X of B or "build all branches of B"

Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread jvenkat099
Hello Users, I have Jenkins with master slave configuration, I have linux slaves and windows slaves I am unable to use the Gitlab SSH credentials on Windows Slave Fails on scm checkout, The scm checkout works fine for the linux slaves To test the id_rsa key, I put the id_rsa in .ssh of home dir