Getting "java.io.NotSerializableException" exception in Jenkins pipeline, groovy.

2016-11-13 Thread Ganesh Kumbhar
Hello All, I am new to Jenkins pipeline and recently started to use it for my project build. So, from Jenkins file I am calling a method from other .groovy file which is simple script having some functions defined and in those functions I am creating antbuilder object -> "@Field AntBuilder ant

Re: There are dependency errors loading some plugins: Jenkow Activiti Explorer v0.3.1 and Jenkow Activiti Designer v0.3.1

2016-11-13 Thread Rainer Enders
Thank you very much. Problem solved. On 11/13/16, 3:05 PM, "Daniel Beck" wrote: > >> On 13.11.2016, at 21:31, Rainer Enders >>wrote: >> >> I >> searched all the plugins and there is nothing in either the Installed >>nor >> the Available section that contains the name "Jenkow" in any shape or

usage of log4j in jenkins plugin

2016-11-13 Thread touseef
i want to use the log 4j for logging in my jenkins plugins.However my plugin is unable to find the properties file even when i placeit in resource folder of plugin. However when i do it using simple java program it creates log file as expected. Following is the content of properties file # Roo

Re: There are dependency errors loading some plugins: Jenkow Activiti Explorer v0.3.1 and Jenkow Activiti Designer v0.3.1

2016-11-13 Thread Daniel Beck
> On 13.11.2016, at 21:31, Rainer Enders wrote: > > I > searched all the plugins and there is nothing in either the Installed nor > the Available section that contains the name "Jenkow" in any shape or > form. Plugins that fail to load don't show up there, because they neither can be loaded,

cobertura / jenkins failing to publish non-zero code coverage graphs

2016-11-13 Thread Stuart Cracraft
Cobertura xml report pattern in post-build actions in Jenkins build job: **/target/site/cobertura/coverage.xml results in Code Coverage Report of 0/2 for packages, 0/7 for files, 0/7 for classes, 0/55 for methods, 0/164 for lines and 0/70 for conditionals. This is from the book "Jenkins: The

pipeline groovy - can somebody please explain why variable value passing is working like this?

2016-11-13 Thread Jonathan Hodgson
Ok, so having got my script working, I decided to move part of it into a shared library as per the section marked Define more structured DSL here https://github.com/jenkinsci/workflow-cps-global-lib-plugin But I'm getting what to me seems like very odd behaviour with the variables. My primary

Re: Copy files from remote Jenkins workspace

2016-11-13 Thread Baptiste Mathus
Look for pipeline jobs. Might be far easier to achieve that. https://jenkins.io/pipeline/getting-started-pipelines/ 2016-11-13 11:23 GMT+01:00 buddy123 : > > down votefavorite > > > Im trying to create a cros

Re: Jenkins fails to restart

2016-11-13 Thread Baptiste Mathus
You're probably going to have to kill it manually. But also have a look at the logs as to why it didn't stop. Also, you most probably do NOT want to use a weekly release. Better use an LTS for stability, and documented upgrade path (see https://wiki.jenkins-ci.org/display/JENKINS/Removing+and+disa

Re: How to solve

2016-11-13 Thread Baptiste Mathus
https://wiki.jenkins-ci.org/display/JENKINS/Removing+and+disabling+plugins 2016-11-11 16:51 GMT+01:00 Michael Giroux : > We upgraded from Jenkins 1.609.3 to Jenkins 2.19.2 LTS. Upgrade went very > well, but we are seeing some plugin warnings on the "Manage Plugins" page > (see below). The error

Re: "more SCM polling activities scheduled than handled..."

2016-11-13 Thread Baptiste Mathus
Hi, The ideal target you should actually strive for is to "kill polling", and use push instead, as explained in http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/ If you really really cannot consider that, then in your place I would maybe try and mimic what

Re: Exe runs very slow under Jenkins compared to running directly

2016-11-13 Thread Baptiste Mathus
You probably want to understand what is happening during the execution. For that purpose, you want a thread dump of the running JVM: https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump HTH 2016-11-10 19:51 GMT+01:00 J Starbird : > No it doesn't write very much to stdout. Basicall

Re: Suspicious sources placed by Jenkins to /tmp

2016-11-13 Thread Baptiste Mathus
Might be better that the plugin (?) cleans this up. But I'm not sure that's a security issue: it's already on machine(s) where anyway that source code constantly comes and goes on the disk. So? Le 9 nov. 2016 9:11 AM, "Jozef Babjak" a écrit : > Hello! > > My Jenkins is creating random (UUID-name

Copy files from remote Jenkins workspace

2016-11-13 Thread buddy123
down votefavorite Im trying to create a cross-compilation job, that will build my code for both Windows & Linux. I have set up Windows & Linux jenkins nodes, and configured two jobs, one with 'windows' labe

Re: Coded pipeline - auto job creation (webhook) ???

2016-11-13 Thread Baptiste Mathus
https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin ? 2016-11-10 13:35 GMT+01:00 : > Hi Greg, > > interesting, but it's not on GitHub. Also same plugin would be available > for Bitbucket ... Jenkinsfile is probably not enough. > We also would like to have a parametrized bui