Re: maven projects become slow after a couple of months

2016-05-25 Thread Jorg Heymans
Hi, We have a local maven repo per executor. We do not archive any artifacts. I have not configured anything specifically for fingerprinting so whatever is the default is currently active. As i said the slowdown occurs during maven init, when it says 'Scanning for projects' , has Jenkins instr

Controlling user Jenkins runs as

2016-05-25 Thread 'Stuart Henderson' via Jenkins Users
Hi, Thank you. That worked as solved the problem. Much appreciated. -- 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

Re: Unable to anonymously clone a Jenkins scriptler repository

2016-05-25 Thread Mark Eggers
As a followup - anonymous cloning works as expected with the following environment: CentOS 6.7 64 bit Tomcat 7.0.69 (ASF) JRE 1.7.0_80 (Oracle - sigh) Apache HTTPD 2.2.15-47 mod_jk 1.2.41 (ASF) git 1.7.1 Jenkins 1.656 Scriptler 2.9 So I'm missing something in my upgrade from 1.656 to 2.x? M

Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread Baptiste Mathus
For ref, some examples of such scripts: https://github.com/batmat/jez/tree/master/jenkins-master/init_scripts 2016-05-25 19:46 GMT+02:00 Zoratto Thomas : > Good to know, thanks ! > > Le 25 mai 2016 à 19:41, nicolas de loof a > écrit : > > ok, then you can use an init.groovy file for this purpose

Re: Repository connector plugin : can't retrieve the selected VERSION since last Jenkins update ! Help

2016-05-25 Thread Baptiste Mathus
Hi, Probably https://jenkins.io/blog/2016/05/11/security-update/ Cheers 2016-05-25 15:29 GMT+02:00 Yves-Marie LAINÉ : > Hi All, > > I updated my Jenkins instance yesterday, and since this moment my build is > broken because the Repository connector plugin doesn't set the version > parameter wit

Re: jenkins 2 with default set of plugins

2016-05-25 Thread Baptiste Mathus
Depending on your possibilities, Docker might definitely be the way to go. Very easy to add the plugins you wish to the official image, create the necessary files to get past upgrade notices and so on. See https://hub.docker.com/_/jenkins/ The /only/ difficulty might be to create a correct plugin

Re: Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-25 Thread Baptiste Mathus
Indeed, this plugin is up for adoption now that Damien stepped down. But, as says Nicolas who created it, this plugin is unlikely to have a lot of traction and any real future [1] so you're likely to have to dig into the issue yourself. But you're very welcome to step over as a maintainer AJ. Just

Unable to anonymously clone a Jenkins scriptler repository

2016-05-25 Thread Mark Eggers
Hi, I'm trying to reorganize a bunch of Groovy scripts with Scriptler, and I would like to use the git repository. My environment: CentOS 6.8 64 bit JRE 1.8.0_92 (Oracle) git 1.7.12.4 (rpmforge) Apache HTTPD 2.2.15-53 (CentOS) mod_jk 1.2.41 (ASF) Tomcat 8.0.33 (ASF) Jenkins 2.6 (upgraded from

Re: Pipeline: Keep the main logic outside of Jenkinsfile

2016-05-25 Thread Baptiste Mathus
Did you possibly have a look at: https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Remote+Loader+Plugin or https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Shared+Groovy+Libraries+Plugin ? 2016-05-24 16:00 GMT+02:00 Sverre Moe : > What is the best design approach to keeping the Jenkinsfile

Re: How to solve Could not find (numeric) updateCenterVersion issue

2016-05-25 Thread Baptiste Mathus
Please avoid reposting. In that case, you could have forwarded the dev ML email here. So, quoting myself: "I think you're behind a proxy and Jenkins tries parsing the 403 page or something like that.". Did you look into that path? 2016-05-24 15:54 GMT+02:00 : > Hi, > I am trying to setup Jenkin

Re: Unable to stop pipeline job

2016-05-25 Thread Baptiste Mathus
Did you try to click on the link in the logs, named "Click here to forcibly terminate running steps"? 2016-05-24 9:08 GMT+02:00 Sverre Moe : > After loading a Pipeline script the job froze and I was unable to stop the > build. > Clicking X had no effect. > Restarting Jenkins had no effect. > Dele

Re: pipeline sh directive fails for all non-zero exit codes?

2016-05-25 Thread Mark L
This answers my sh issue: http://stackoverflow.com/questions/36956977/how-to-execute-a-command-in-a-jenkins-2-0-pipeline-job-and-then-return-the-stdou Still would like to know how to exit a pipeline early. On Wednesday, May 25, 2016 at 10:11:44 AM UTC-7, Mark L wrote: > > I'm play with the pipe

Pipeline set pipeline name from Jenkinsfile

2016-05-25 Thread Suresh Avadhanula
Hi, I have multi branch pipeline that scans SVN repository for Jenkinsfile. The build jobs are created with names as foo/bar/somemodule/projectA foo/bar/somemodule/projectB Jenkins configures the workspace for the jobs as ${WORKSPACE_ROOT}/${PIPELINE_NAME}/foo%2Fbar%2Fsomemodule%2FprojectA $

Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread Zoratto Thomas
Good to know, thanks ! > Le 25 mai 2016 à 19:41, nicolas de loof a écrit : > > ok, then you can use an init.groovy file for this purpose (stored in > jenkins_home) > > 2016-05-25 19:35 GMT+02:00 Zoratto Thomas : >> Docker exec is ok if you don't want to persist this configuration >> >>> Le 2

Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread nicolas de loof
ok, then you can use an init.groovy file for this purpose (stored in jenkins_home) 2016-05-25 19:35 GMT+02:00 Zoratto Thomas : > Docker exec is ok if you don't want to persist this configuration > > Le 25 mai 2016 à 19:07, nicolas de loof a > écrit : > > Can't you just docker exec this jenkins c

Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread Zoratto Thomas
Docker exec is ok if you don't want to persist this configuration > Le 25 mai 2016 à 19:07, nicolas de loof a écrit : > > Can't you just docker exec this jenkins container and configure git to accept > this self-signed certificate ? see > https://git-scm.com/docs/git-repo-config/1.4.3#http.ss

Re: maven projects become slow after a couple of months

2016-05-25 Thread Karl Heinz Marbaise
Hi, That sounds like you are either archiving the results of each build or do generate fingerprints of the artifacts...fingerprints are only needed if you try to make dependencies between jobs with SNAPSHOT's otherwise is useless. Furthermore are you using a local maven cache (ake local repo

pipeline sh directive fails for all non-zero exit codes?

2016-05-25 Thread Mark L
I'm play with the pipeline sh directive and can't get it to behave how I want it to. Maybe there's a workaround? The bash script I'm calling has two success modes with the following semantics: (1) everything succeeded, now go onto the next (Jenkins) stage, and (2) everything succeeded and the b

Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread nicolas de loof
Can't you just docker exec this jenkins container and configure git to accept this self-signed certificate ? see https://git-scm.com/docs/git-repo-config/1.4.3#http.sslCAPath 2016-05-25 18:25 GMT+02:00 Zoratto Thomas : > Hello, > > You can build your own Jenkins image based on the official one b

Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread Zoratto Thomas
Hello, You can build your own Jenkins image based on the official one but with the Java trust store configured with your certs. Or you could use ssh (or event git protocol?) instead of https. The plugin you are talking about seems broken and no longer maintained Thomas > Le 25 mai 2016 à 15

Making a Course on Pipeline Plugin

2016-05-25 Thread Kent Johnson
Hi all, I am making a course on how to use Jenkins with the Pipeline plugin to automate continuous integration and builds. My goal is to make having a short, low-noise, high-reliability feedback loop a practical possibility for the average developer. I am thinking this means that I would show how

Re: Alternative to EnvInject?

2016-05-25 Thread 'Niksan' via Jenkins Users
Messy indeed. :) Well, with luck I stumbled across this. https://themettlemonkey.wordpress.com/2014/10/03/programmatically-set-jenkins-build-variables/ And a bit of digging was able to utilize the EnvInject's plugin EnvInjectBuilderContributionAction. That left me with a more flexible and sane

Uploading files to Jenkins build from Ruby script

2016-05-25 Thread Andrew Moore
I have a ruby script to upload files to a Jenkins job but for some reason they don't appear in the job's workspace. def jenkins_get_attempt(credentials, uri,payload) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE headers

Re: maven projects become slow after a couple of months

2016-05-25 Thread Jorg Heymans
No, we keep only two builds. And we do not even archive any artifacts, just a simple clean install. Jorg On Wednesday, May 25, 2016 at 3:39:32 PM UTC+2, David Karlsen wrote: > > Are you keeping a lot of build history? > 25. mai 2016 11:21 skrev "Jorg Heymans" > >: > >> Hi, >> >> I reported th

Re: maven projects become slow after a couple of months

2016-05-25 Thread David Karlsen
Are you keeping a lot of build history? 25. mai 2016 11:21 skrev "Jorg Heymans" : > Hi, > > I reported this a couple of months ago, is anyone else seeing this ? > > https://issues.jenkins-ci.org/browse/JENKINS-34233 > > Several times already we have noticed that the build time of certain of > our

jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread christian polzer
Hello, I am currently trying to evaluate an update to Jenkins 2.x here at work with the actual docker image of jenkinsci/jenkins. For this I need to git pull my git repo from a selfhosted Bitbucket/Stash Server via https. Of course, the docker image's JVM has no clue of that cert. So I wanted

Re: [workflow-plugin] Access to environment variables in flow.groovy

2016-05-25 Thread ludovic SMADJA
I've deal with the same problem. The variable is available as BRANCH_TEST (and not env.BRANCH_TEST). If you need env variables, you must use WithEnv keyword. regards, -- Ludovic SMADJA R&D engineer - build process and development JALIOS SA http://www.jalios.com Le mardi 24 mai 2016 à 15:34 -070

Repository connector plugin : can't retrieve the selected VERSION since last Jenkins update ! Help

2016-05-25 Thread Yves-Marie LAINÉ
Hi All, I updated my Jenkins instance yesterday, and since this moment my build is broken because the Repository connector plugin doesn't set the version parameter with the selected one.. I updated all the plugins as well. So is anybody experiencing the same problem ? Cheers, Yves-Marie --

Alternative to EnvInject?

2016-05-25 Thread 'Niksan' via Jenkins Users
I'm trying to inject a variable in to a job mid-flight who triggers another job and waits for it, 'inject environment variables' seems to do what I want with the caveat being it doesn't appear to do parameter substitution. My build step does : build.addAction(new ParametersAction([ new StringPa

Jenkins script groovy - AuthorizationMatrixProperty

2016-05-25 Thread Camila Bastos
How do I delete the job authorization matrix a specific user? I need to programmatically as there are many jobs. I found no specific method of AuthorizationMatrixProperty class that the user is in error or how to delete.

Re: Mulit-Branch Project Plugin and Post-build action "Publish artifacts in Maven repository (deploy)"

2016-05-25 Thread 'Sandra Parsick' via Jenkins Users
Thank you for your replies. I will try out both advices. Am Dienstag, 24. Mai 2016 20:19:10 UTC+2 schrieb David Karlsen: > > afaik the post-deploy step is specific to a maven-type job > specifically, so you just need to run a normal maven command. > You could also try this option > > http:/

Multiple memory map analysis plot

2016-05-25 Thread abhay kothari
Hello, I have a job running in jenkins that compiles for 3 microcontroller targets How do plot the memory consumption (ram & rom) for all 3 targets in the same job All 3 targets generate a CSV & XML file during the build process which lists the consumption of memory How can i get a report in

Re: Pipeline Global Library repository access

2016-05-25 Thread Jonathan Hodgson
For the record, once I had committed and pushed from the Linux machine, so the repository was no longer empty, I found I could clone to the windows machine. So the issue was it being an empty repo, but why cloning it worked on Linux, but not on Windows, is still a mystery to me. On Tuesday, Ma

How to know how use jenkins library inside any script

2016-05-25 Thread Igor T
Hi, All I wonder how other knows which library use for getting necessary data from jenkins hudson.model.* for example. where i can read about it ? THanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and sto

Re: jenkins 2 with default set of plugins

2016-05-25 Thread christophe . demarey
Thanks for the answser but indeed, the problem is to deal with plugins dependencies. I would like - either a way to say jenkins to do not show the configuration step and download recommanded set of plugins - or a way to install a set of plugins and their dependencies from command-line Le mard

maven projects become slow after a couple of months

2016-05-25 Thread Jorg Heymans
Hi, I reported this a couple of months ago, is anyone else seeing this ? https://issues.jenkins-ci.org/browse/JENKINS-34233 Several times already we have noticed that the build time of certain of our maven jobs increases substantially over the course of several months. We are talking from 30s