Re: Write custom Jenkins plugin to execute commands on remote node?

2014-02-24 Thread John Vacz
Am 22.02.2014 06:33, schrieb Ravid Te: Hey Everyone, I am new to plugin creation, and have a need to create a plugin that generates a specific file based on user-input to a remote node containing large strings of data. *I am aware of the current "Execute Shell" build step option and "Execut

Re: best approach to automate/manage jenkins jobs?

2014-02-21 Thread John Vacz
https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin Am 21.02.2014 16:21, schrieb Mark Waite: I called the command line to extract the job definition, then stored that definition in source control. I could replay it at any time. That did not update job definitions when th

Re: REST API for promoting builds

2014-02-18 Thread John Vacz
This is also what I am missing for a long time. I had the impression that promoted build being a second-class job, there are some features exposed by REST API but not complete. It would be very nice if performing/copying/creating/removing a promotion could be fully supported by REST API, cli an

Re: Manual Promotion and Upstream Promotion Criteria along with Role Strategy plugin

2013-08-29 Thread John Vacz
Am 22.08.2013 14:41, schrieb deevant07: Hi, I have the following scenario. A build job is created. On successful build i want the build to be promoted by a particular role( "DEV Approvers" - Using Role Strategy Plugin ) to environment say DEV. On successful completion of DEV promotion i want th

Re: Does Jenkins upgrade required any intermediate version from 1.466.2 to 1.527

2013-08-15 Thread John Vacz
My feeling is that the latest versions are not very stable due to some changes in core and some important plugins. Since 1.523+ we experienced more issues than earlier. For example, we are still using some old version plugins because of compatibility issues: Testng plugin 0.33, since we have som

Re: HTML Reports Plugin - Always run?

2013-08-09 Thread John Vacz
I also had this issue today (I didnt see/notice this issue until a few hours ago, is it just coincident?). I aborted a running job, but html publisher and emma plugin still ran, the reports from last build were collected and published: ... Build wurde abgebrochen Aborted by thg1 [FINDBUGS] Ski

Re: Missing class sonatype/aether/util/StringUtils

2013-08-08 Thread John Vacz
I also have this stacktrace. Jenkins 1.525 (reverted back from 1.526), email-ext plugin 2.30.2, Debian 6.0.7 64-bit. Am 08.08.2013 18:40, schrieb J Arrizza: I'm running Ubuntu 10.04. After a plugin upgrade I'm getting - NoClassDefFoundErrors in the log. - no emails are being sent out

Re: How to "link" a particular job with the promotion process without physically copying the artifacts

2013-07-15 Thread John Vacz
Am 10.07.2013 16:24, schrieb Marcin Zajączkowski: Hi, I'm currently playing with Promoted Build plugin in the pipeline managed by Build Flow plugin. In a simplified form I have three jobs (called from the master job using Build Flow plugin): - a normal build of a project - job B - a deploy

Re: Fingerprinting performance

2013-07-11 Thread John Vacz
ync config plugin may be too aggressive here when SaveableListener.fireOnChange being triggered. I think my problem is solved. Thank your very much Daniel for the great help. -jv Am 11.07.2013 17:16, schrieb John Vacz: The SCM sync configuration: Am 11.07.2013 17:10, schrieb John Vacz:

Re: Fingerprinting performance

2013-07-11 Thread John Vacz
The SCM sync configuration: Am 11.07.2013 17:10, schrieb John Vacz: Executor #1 for Slave16 : executing SD-2112 #3 "Executor #1 for comitdev16 : executing SD-2112 #3" Id=62 Group=main RUNNABLE at java.io.UnixFileSystem.list(Native Method) at java.io.File.list

Re: Fingerprinting performance

2013-07-11 Thread John Vacz
segment of the therad dump. Looks like scm sync config plugin is scanning directories a lot? Am 11.07.2013 16:45, schrieb John Vacz: The artifacts: 30MB x 1, 6.5MB x 9, 1MB x 1, others are 5 plain text files between 0.1 ~ 10KB. I will look into the threadDump... Am 11.07.2013 16:33, schrieb D

Re: Fingerprinting performance

2013-07-11 Thread John Vacz
related during those 5 minutes, it could give you a hint what is taking so long. Copy artifact works without fingerprinting in the source project, but always calculates its own when copying. See JENKINS-12134 and JENKINS-18653. On 11.07.2013, at 15:06, John Vacz wrote: Recently the

Fingerprinting performance

2013-07-11 Thread John Vacz
Recently the fingerprinting of our jubs is becoming very slow.Per build we have 16 artifacts to be fingerprinted, now that alone lasts ~5 minutes. Since we are using copy artifact plugin very heavily, the situation is becoming even worse - the slowness adds up. Unfortunately I cannot tell from

Re: How to keep Unix process alive after job is completed?

2013-07-04 Thread John Vacz
Wednesday, July 3, 2013 5:42:10 AM UTC-5, John Vacz wrote: We have a job executing a shell script (on a slave) to restart one dev appserver on a remote server if it does not work properly (dont bother why its not working): # BUILD_ID=dontKillMe ssh us...@some.remote.server exec

Re: How to keep Unix process alive after job is completed?

2013-07-03 Thread John Vacz
We have a job executing a shell script (on a slave) to restart one dev appserver on a remote server if it does not work properly (dont bother why its not working): # BUILD_ID=dontKillMe ssh user@some.remote.server exec /path/to/appserver/force_restart_script arg1 The "force_restart_scrip

Re: Trouble connecting to Windows slaves using jnlp - quick question

2013-06-26 Thread John Vacz
Is the master running behind a proxy? It seems to me that if the proxy is running on a different host, the jnlp slave may try to connect the proxy host, instead of the jenkins host. This might also be related to the jenkins url in the configuration. We have had a similar problem, after we move

Re: 'Even Load Strategy' Plugin

2013-06-10 Thread John Vacz
now officially hosted - https://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin and you can get it via the update center. Brendan On Fri, Jun 7, 2013 at 6:01 PM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: Very interesting, is this plugin compatible w

Re: 'Even Load Strategy' Plugin

2013-06-07 Thread John Vacz
Very interesting, is this plugin compatible with lable expression? If so, it would be perfect for us. We have some important jobs must run on "64bit && fastest" nodes, should not be balanced to other slaves, but other "normal" jobs should be balanced to the idle slaves. -jv Am 04.06.2013 09:0

Promotion: Status Code: 400,Exception: This page expects a form submission

2013-05-31 Thread John Vacz
We have recently problem with manual promotion (/Promoted Builds/ Plugin ), Jenkins returns Status Code: 400 Exception: This page expects a form submission Does anyone see this issue? In last several days we updated Jenkin

403 jsonp forbidden (since 1.502)

2013-03-12 Thread John Vacz
Hi, we have some html+js hosted in JENKINS/userContent/, and using the rest api (mainly jsonp, - we are planning to host those pages/script on a dedicated server later) extensively to cumulate/reorganise the information (both from Jenkins and other systems, like Jira) for different user groups

RE: How to pass parameters between jobs - quick question

2013-01-12 Thread John Vacz
We also ended up generally saving all metadata (system/environment variables, jenkins parameters, and build properties etc) into properties file and archieve them. This approach simplifies/works around many problems we had. Now every build has its metadata archived, for downstream jobs or later ref

Re: Jenkins 1.496 CLI: java.lang.IllegalAccessError: org/kohsuke/args4j/CmdLineParser$1

2013-01-03 Thread John Vacz
Some more info: This is a job executed in a debian slave, our jenkins master is also running on debian. It worked perfectly well in the last months (probably over 1 year). Am 03.01.2013 17:24, schrieb John Vacz: Hello, I am getting exception from jenkins CLI since upgraded to version 1.496

Jenkins 1.496 CLI: java.lang.IllegalAccessError: org/kohsuke/args4j/CmdLineParser$1

2013-01-03 Thread John Vacz
Hello, I am getting exception from jenkins CLI since upgraded to version 1.496: + java -jar jenkins-cli.jar -shttp://myjenkins:8080/jenkins -i /home/jenkins-slave/.ssh/id_rsa login Exception in thread "main" java.lang.reflect.UndeclaredThrowableException

Re: EnvInject 1.52 exceptions

2012-05-18 Thread John Vacz
1.53 works perfectly. Thanks! I also have SharedObject installed, must I always synchronise SharedObject to the corresponding version if I up/downgrade EnvInject? Am 17.05.2012 22:55, schrieb Grégory Boissinot: EnvInject 1.53 should fix these issues. On Wed, May 16, 2012 at 4:35 PM, John

EnvInject 1.52 exceptions

2012-05-16 Thread John Vacz
Hello, after upgrade to Jenkins 1.463 and EnvInject 1.52, I can see large amount of exceptions when Jenkins starts up (see attachment). It seems to me like the change in EnvInject 1.52 is causing the exceptions. I think its somehow harmless, because all our jobs are still running as usual. Th

Re: Jenkins + Email-ext - How to configure per-project settings?

2012-05-15 Thread John Vacz
I also have the same problem after we upgraded to Jenkins 1.463 + Email-ext 2.20. On 13.05.2012 21:09, v0idnull wrote: I'm running Jenkins 1.463 and Email Ext 2.20. All post build actions are in a drop down menu for me, and they all add form elements except for Email Ext On Sunday, 13 May 20

Re: EnvInject does not pick up variables injected by ToolEnv plugin (solved)

2012-04-28 Thread John Vacz
On 27.04.2012 22:43, Grégory Boissinot wrote: On Fri, Apr 27, 2012 at 11:10 AM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: ToolEnv detects the tools installed automatically without extra configuration and populated the path into variables with pre

Re: EnvInject does not pick up variables injected by ToolEnv plugin

2012-04-27 Thread John Vacz
gin by providing the ability to shared objects as environment variables. These objects can be Tools and their installation paths are exposed as environment variables. On Thu, Apr 26, 2012 at 11:13 PM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: Jenkins 1.460, de

Fwd: EnvInject does not pick up variables injected by ToolEnv plugin

2012-04-26 Thread John Vacz
Jenkins 1.460, debian native package (winstone) EnvInject 1.46 ToolEnv 1.0 Original Message Subject:EnvInject does not pick up variables injected by ToolEnv plugin Date: Thu, 26 Apr 2012 23:04:24 +0200 From: John Vacz To: Jenkins Users A trival job: 1

EnvInject does not pick up variables injected by ToolEnv plugin

2012-04-26 Thread John Vacz
A trival job: 1. ToolEnv injected a enviroment variable "JDK_1_6_HOME", 2. build step 1: shell script: echo " -- Before envinject: JDK1_6_HOME=$JDK1_6_HOME" 3. build step 2: EnvInject injected another variable SOME_ARG=$JDK1_6_HOME Console output: Started by user tester

Re: Promoted Builds Plugin: promote downstream jobs also

2012-04-10 Thread John Vacz
You can trigger/start a build of job bar in a promotion process in foo (see "Actions" section of the promotion configure, you may need other plugins though). In job bar you can define an automatic promotion process which "Promote immediately once the build is complete". You mention the promot

Re: promotion plugin: multiple levels of promotion

2012-04-10 Thread John Vacz
See the 'Criteria' section of each promotion process in job config screen. This one: "when the following upsstream promotions are promoted" might basically do what you want. On 09.04.2012 23:08, Brian J. Murrell wrote: The Promoted Builds Plugin description page (https://wiki.jenkins-ci.org/di

Re: EnvInject: injecting environment variables from URL

2012-04-03 Thread John Vacz
v0.22 works like a charm! Thanks for the great job! On 29.03.2012 23:56, Grégory Boissinot wrote: The SharedObjects 0.22 should solve this issue. On Thu, Mar 29, 2012 at 10:50 PM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: 0.21 fixed the proble

Re: EnvInject: injecting environment variables from URL

2012-03-29 Thread John Vacz
On Mon, Mar 26, 2012 at 10:17 PM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: Sorry, forgot to say, that the redirection on save button works. The errors are only present in log file, no error messages on web pages, but the objects are not saved.

Re: EnvInject: injecting environment variables from URL

2012-03-26 Thread John Vacz
AM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: I have form submission problem on the shared objects configure page when I access Jenkins through a local proxy (ssl tunneling). I got a "server not found" page when I click the "save&

Re: EnvInject: injecting environment variables from URL

2012-03-26 Thread John Vacz
, 2012 at 7:13 AM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wrote: I have form submission problem on the shared objects configure page when I access Jenkins through a local proxy (ssl tunneling). I got a "server not found" page when I click the "s

Re: EnvInject: injecting environment variables from URL

2012-03-22 Thread John Vacz
objects will be computed dynamically and the results will be injected as environment variables for each job build. https://wiki.jenkins-ci.org/display/JENKINS/SharedObjects+Plugin On Fri, Mar 16, 2012 at 10:43 AM, John Vacz <mailto:mailing.list.collect...@googlemail.com>> wr

Re: No more scripts in View/Dashboard description

2012-03-21 Thread John Vacz
You can try Page Markup Plugin: https://software.sandia.gov/trac/fast/wiki/PageMarkup With this plugin you can effectivly inject your javascript into page head. On 07.03.2012 12:14, Daniel Tkatch wrote: Hey, if this is related I don't understand how. Any way what additional security hole cou

Re: EnvInject: injecting environment variables from URL

2012-03-21 Thread John Vacz
Propagate shared objects' in the 'Prepare an environment for the job run' section. Shared objects will be computed dynamically and the results will be injected as environment variables for each job build. https://wiki.jenkins-ci.org/display/JENKINS/SharedObjects+Plugin On Fri,

EnvInject: injecting environment variables from URL

2012-03-16 Thread John Vacz
Can EnvInject plugin inject enviroment variables defined in .properties file from a URL? I tried but it did not work. Have i missed something obvious? Our particular use case is that we need to inject some mail address lists as environment variables to be used by Email-ext plugin, and it woul

Re: Mixing automatic and scheduled builds

2012-02-24 Thread John Vacz
adata. On 23 Feb., 23:56, John Vacz wrote: On 23.02.2012 08:36, Sason wrote: Hi there, I'd like to set up two dependent build projects for the same software product as follows: - have a "quick" build run every time a developer commits changes, i.e. u

Re: Mixing automatic and scheduled builds

2012-02-23 Thread John Vacz
On 23.02.2012 08:36, Sason wrote: Hi there, I'd like to set up two dependent build projects for the same software product as follows: - have a "quick" build run every time a developer commits changes, i.e. using the SCM polling trigger. This will only be an incremental build, followed by unit te

Re: Monitor build file size (JavaScript and CSS in my case)

2012-02-14 Thread John Vacz
On 03.02.2012 01:25, Lindsey Simon wrote: Actually, it looks like this just gives me the size of the workspace per build, not the individual files in that workspace. In my case I care about the size of about a dozen files and want to monitor those in particular. Maybe it's time to get custom ;0