Re: Multibranch Pipeline: no branch checkout

2018-02-13 Thread Sverre Moe
Branch RELEASE1 is built on SLES 11.3 which has installed git-1.7.12.4 Branch RELEASE2 is built on SLES 12.1 which has installed git-2.12.3 If I build branch RELEASE1 on the build slave for SLES 12.1 then checkout works as expected. Seems git version 1.7 has either a limitation or bug. tirsdag

Re: jenkins slave offline

2018-02-13 Thread Nick Li
Could you share some notes about "configure Java in the jnlp agent docker"? Not sure how to do this. Thanks a lot On Tuesday, February 13, 2018 at 5:34:43 PM UTC+8, Carlos Sanchez wrote: > > > Caused by: javax.net.ssl.SSLHandshakeException: > java.security.cert.CertificateException: No subject

Connection EC2 instances from Jenkins

2018-02-13 Thread fvelascojgc
Hi, I have some problems with Jenkins configuration. I connect via SSH with Jenkins instance, and configure aws connection using command "aws configure". If I run the SSH command to stop a certain instance and it works perfectly. I tried to do the same using jenkins dashboard, I have

SSHing to linux server from Jenkins windows and execute a command

2018-02-13 Thread groupfiles14
Hello, i am new to jenkins and i would like to SSH to linux server from Jenkins hosted on windows and execute a command over in linux machine, i tried installing publish over ssh plugin and tested the connection and it works fine, i dont know how to proceed next in pipeline. Any help would

Multibranch Pipeline: no branch checkout

2018-02-13 Thread Sverre Moe
Multibranch Pipeline Branch:RELEASE2 [Pipeline] checkout Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository ssh://g...@git.company.com/domain/projectA.git > git init >

RE: How to keep a running docker container after a build fails?

2018-02-13 Thread Reinhold Füreder
Hi aps, Just in case the problem is still there and to avoid a misunderstanding: Based on (a) Victor’s hint “tr[y] with the docker.inside syntax […] It might give you the chance to debug it somehow.” and (b) your own comment “I'm really surprised you can't pause the build”:

Re: How to keep a running docker container after a build fails?

2018-02-13 Thread pisymbol .
On Tue, Feb 13, 2018 at 7:56 AM, Reinhold Füreder wrote: > Hi aps, > > > > Just in case the problem is still there and to avoid a misunderstanding: > > > > Based on (a) Victor’s hint “tr[y] with the docker.inside syntax […] It > might give you the chance to debug it

Re: jenkins slave offline

2018-02-13 Thread Carlos Sanchez
> Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address MY_JENKINS_IP found If you don't use valid ssl certificates in the jenkins master you'll need to configure Java in the jnlp agent docker, it has nothing to

Re: jenkins slave offline

2018-02-13 Thread Nick Li
Thanks Carlos, I will check On Tuesday, February 13, 2018 at 5:34:43 PM UTC+8, Carlos Sanchez wrote: > > > Caused by: javax.net.ssl.SSLHandshakeException: > java.security.cert.CertificateException: No subject alternative names > matching IP address MY_JENKINS_IP found > > If you don't use valid

Too many jobs running on GitHub push with master/slaves setup

2018-02-13 Thread Guillaume Smet
Hi, First, let me give some context: - We use Jenkins for the CI of the Hibernate projects. - We have a master/slaves setup on AWS with slaves being terminated when they don't have anything to do so slaves come and go and we can't count on them. - It's a rather new setup as we used a couple of

Re: Dollar sign in credentials broken for declarative pipelines

2018-02-13 Thread Slide
Can you file an issue in JIRA? On Tue, Feb 13, 2018 at 7:10 PM red 888 wrote: > This is my password: "ASD123$567" > > This doesn't work > > withCredentials([usernamePassword(credentialsId: 'creds', > usernameVariable: 'myuser', passwordVariable: 'mypass')]) { >

Dollar sign in credentials broken for declarative pipelines

2018-02-13 Thread red 888
This is my password: "ASD123$567" This doesn't work withCredentials([usernamePassword(credentialsId: 'creds', usernameVariable: 'myuser', passwordVariable: 'mypass')]) { sh "some command --username ${svnuser} --password ${mypass}" } What i see in the output is mypass is not obfuscated

Re: Dollar sign in credentials broken for declarative pipelines

2018-02-13 Thread Mark Waite
Are you sure that's really a bug? If the value of mypass is 'ASD123$567' and that is passed as an environment variable to the shell, won't the shell see the '$567' and attempt to expand an environment variable named '567'? The expansion of $567 is probably the empty string. If '$' and other

Re: Dollar sign in credentials broken for declarative pipelines

2018-02-13 Thread niristotle okram
I just had this a couple of days back in a shell script. I had to place the password string (which have the $) within a quote. But can we put the quotes in the password field of the jenkins credentials page, wont it not treat the quote as a part of the password string? I haven’t tested it though.

Re: SSHing to linux server from Jenkins windows and execute a command

2018-02-13 Thread groupfiles14
Any one here knows how to proceed with this? On Tuesday, February 13, 2018 at 5:45:07 PM UTC+5:30, groupf...@gmail.com wrote: > > Hello, > i am new to jenkins and i would like to SSH to linux server from > Jenkins hosted on windows and execute a command over in linux machine, i > tried