Re: Cannot set Git executable using Job DSL

2017-01-05 Thread shaneoh1980 McP
Thanks - but that generates a separate block of XML, with what I want, but it doesn't apply it to the git scm and therefore has no effect on the job. In other words, inside the XML for git, I still see: Default But then outside that, in a separate block, I see:

Re: Problem defining global variables

2017-01-05 Thread Sverre Moe
Must be a way in Jenkinsfile to access variables set within a Shared Library script. I could set a return variable for execute(), not a good solutions if I want to access more than one variable. def build = new com.company.ci.Build() def foo = build.execute() Unless I can return the variables

Git cannot read password after upgrading git client plugin from 1.19.6 to 2.1.0

2017-01-05 Thread shaneoh1980 McP
I'm trying to upgrade our Jenkins to 2, but coming accross a problem with git authentication. I've got Git credentials loaded and they currently work, but when I upgrade the plugin from 1.19.6 to 2.1.0, all jobs that use Git for SCM fail with the same error message. As soon as I downgrade the

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-05 Thread Dan Tran
I would prefer to clone the repo and build the container, this way I do not have maintain my own jenkins image Maybe Jenkins dev can allow options to run the container using user prefer Ids? Thanks -Dan On Thursday, January 5, 2017 at 3:37:54 AM UTC-8, Barry Laffoy wrote: > > If this is of

Re: Jenkins not starting and killing Tomcat on Solaris VM

2017-01-05 Thread Andrew
Julien No, no fix, no update. Ended up retaining on physical kit. :-( On Wednesday, August 5, 2015 at 8:51:37 PM UTC+10, Julien Verger wrote: > > Hello Andrew, > > did you hav any update since this post? I've a same problem to solve. > > Regards > -- You received this message because you are

Building/Deploying on new tag

2017-01-05 Thread Gavin Mogan
So my flow as it stands now. 1) Do some work 2) Happy with work 3) Tag a release (v1.0.1 for example) 4) Create a docker image 5) Publish to kubernetes. In jenkins, I've gotten 4 and 5 working very nicely in pipelines, but it'll either work manually, or on every commit. I remember in freestyle

Re: Updating Config File Provider Plugin to v2.15.1 fails if the congiuration files are created with a old version (post with a workaround)

2017-01-05 Thread Mark Waite
I'm seeing a different behavior that I think is also related to the most recent config files provider plugin. I don't see the stack traces or illegal state exception that you're seeing, but instead, I see a message in the build log which says: ERROR: your Apache Maven build is setup to use a

Re: Cannot set Git executable using Job DSL

2017-01-05 Thread Indra Gunawan (ingunawa)
You need to configure in “job” block not “git” block like : job(‘job’) { scm { git { … } //git } //scm configure { project -> project / scm(class: ‘hudson.plugins.git.GitSCM’) { gitTool ‘Ubuntu Git’ } //project }

Re: windows python virtualenv

2017-01-05 Thread Dennis Marwood
Thank you. I ended up using cmd to get this working. type nul >my_params.params > python -m venv env > cmd /c "env\Scripts\activate.bat & echo Paths in use: & python -c "import > sys; print('\n'.join(sys.path))" & pip install -r requirements.txt & python > main.py & deactivate" > > On Tuesday,

Fwd: Title: UI Developer (Medical Experience) @ Location: Milwaukee, Wisconsin @ Note- Need 9+ Exp

2017-01-05 Thread Jameer Basha
Hi, Hope you are doing great, Greetings from *SAGE IT INC,* Please find the bellow requirement, if comfortable with this requirement please send me Updated resume to *bjam...@sageitinc.net * *Title: UI Developer (Medical Experience) * *Location: Milwaukee,

Cannot set Git executable using Job DSL

2017-01-05 Thread shaneoh1980 McP
I'm converting all of our Jenkins jobs to DSL scripts and I've come accross one where we use a Git executable other than the "default" one. I've spent two days trying to get this to work and no matter what I do it just won't work. I need this in the config.xml which gets generated for the job

Updating Config File Provider Plugin to v2.15.1 fails if the congiuration files are created with a old version (post with a workaround)

2017-01-05 Thread Sigbjørn Tvedt
Hi. We tried to upgrade our jenkins instance with the newest versions of Config File Provider Plugin (2.15.1) and Managed Scripts (1.3) last week. The installation completed without errors, but unfortunately the files where inaccessible for the jobs after restarting. The 'Managed files' entry

Pipeline stash and empty directories

2017-01-05 Thread M Bagnall
I have a set of directories/files that I am stashing during a pipeline build that includes an empty directory. When I unstash the empty directory isn't there. Is this expected behaviour? If so, is there a way to prevent it skipping empty directories? This particular set of files is a third

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-05 Thread Barry Laffoy
If this is of use to anybody else, I was able to workaround this implementation problem in the jenkinsci/docker with the following: FROM jenkins:2.19.4 ARG user=jenkins ARG group=jenkins ARG olduid=1000 ARG oldgid=1000 ARG uid ARG gid ENV JENKINS_HOME /var/lib/jenkins ENV

[Declarative Pipeline] TestNg report

2017-01-05 Thread Dan Tran
Hi Current pipeline, this is the snippet for testng report step([$class: 'Publisher', reportFilenamePattern: 'itests/sit/report/**/testng-results.xml']) How do I do it for declarative pipeline? Thanks -Dan -- You received this message because you are subscribed to the Google Groups

Re: "WARNING: Skipped parameter" appears a lot of times in the log

2017-01-05 Thread Asaf Mesika
I now tried the "keepUndefinedParameters" and the WARN messages now not appearing anymore - problem solved. What do you suggest? On Fri, Dec 30, 2016 at 4:28 PM Baptiste Mathus wrote: > Hi, > > Did you try the global >

Jenkins dump analysing

2017-01-05 Thread Dmitrijs Shahlovs
Hi all, I am running Jenkins 2.7.4 on windows machine(as windows service). For now we are enforced to restart Jenkins every couple days, because performance degrades, >From memory dump I can see, that 60% of size is taken by char[] class. There are 65000 almost identical instances: [number

Re: [Pipeline] @NonCPS causes "sh" to hang with parallel steps

2017-01-05 Thread Jørgen Sølvernes Sandnes
Thanks! Would it be possible to improve the framework so that an exception would be thrown when attempting to do pipeline steps from a @NonCPS method? (I assume other people than me have spent hours and hours of debugging before realizing what is wrong) On Wednesday, January 4, 2017 at 9:52:49

Re: Jenkins help

2017-01-05 Thread Christoph Nenning
Hi, this is probably what you need: https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache Regards, Christoph > From: KingTux > To: Jenkins Users , > Date: 05.01.2017 00:59 > Subject: Re: Jenkins help > Sent by: