Master slave problem

2012-06-27 Thread Varghese Renny
I am having one jenkins running on tomcat6. i wanted to have my web application to run on differenct tomcat6 instance. For that i need a master slave approach? How to run jenkins on one tomcat as master and application as slave on another tomcat? Please reply..

Re: Re: Re: Shell script working in command prompt not in jenkins

2012-06-27 Thread Vojtech Juranek
On Tuesday 26 June 2012 19:56:10 Varghese Renny wrote: > My system user is sigma.but i am running jenkins on tomcat6 user and > tomcat6 group. So which user i have to specify in sudeors file. > Thanks then you have to grand sudo for tomcat6 user, as the build process runs under this user (if you

Re: Master slave problem

2012-06-27 Thread Varghese Renny
Some body please tell about this whether i can use master and slave on same machine?. when i try to run my application and jenkins on same tomcat..database aceess gets locked. So it's affects my build process..so i want to put jenkin and application in differenct tomcat. for that i need any ma

RE: Master slave problem

2012-06-27 Thread Mandeville, Rob
You can certainly have several slaves running on the same host as the Jenkins server, but it sounds like something else is going on. Is your slave trying to do things to the Tomcat instance that your server is on? Whether that will work or not depends on Tomcat more than it does on Jenkins. T

Re: Master slave problem

2012-06-27 Thread Varghese Renny
i wil explain it.. i have Openbravo application(web) and jenkins running on same tomcat. While i am doing build job , it will access postgres database..that time build will fail due to session on hold. This occur because application internally accessing database..eventually my build get failed. So

iSeries as slave not working correctly

2012-06-27 Thread z.sha...@gmail.com
I am having difficulties getting the iSeries slave to execute commands as it produces garbage in job console when a job runs any non-ssh buildstep. If I run a job with an ssh buildstep and run it from the master, it works fine. Here is an example of the output I am getting. *08:50:49* Run co

Re: Master slave problem

2012-06-27 Thread Les Mikesell
On Wed, Jun 27, 2012 at 7:34 AM, Varghese Renny wrote: > i wil explain it.. > i have Openbravo application(web) and jenkins running on same tomcat. > While i am doing build job , it will access postgres database..that time > build will fail due to session on hold. > This occur because application

Re: Can i run master and slave on same machine

2012-06-27 Thread Mark Waite
The simplest answer to your "Can I run master and slave on the same machine" is "Yes".  The challenging part of the question is "Why?" The subject line seems to hint that you are considering running a master and a slave on the same machine.  It certainly can be done.  Whether it should be done

running server and tests as a job

2012-06-27 Thread prasanna santhanam
I have a situation where I need to run a bunch of tests on a server that is running and listening for HTTP requests: Jenkins Job: runs an ant target - "ant run-server". Server starts up on a jenkins slave and waits for requests. On this same slave I need to run the target "ant run-tests" that w

Re: Can i run master and slave on same machine

2012-06-27 Thread Varghese Renny
i have only 5 projects to run.But i run all this project on tomcat server using jenkins. 5 project means 5 web applications which are accessing five different database.So five jenkin job on one tomcat server and i need five other tomcat instance for five application to make up. Since while build is

Re: Can i run master and slave on same machine

2012-06-27 Thread Mark Waite
I'm not a tomcat user, so I can only guess how it might work in the case you're describing.   If each of your tomcat servers runs on a different port or ports, and if your master node has sufficient processing power to run all the tomcat and related processes in parallel, then you can run them o

Re: Rename a job with REST API

2012-06-27 Thread Vincent Hardion
This is great Tony Thank you very much for the tip and also to have answered despite the age of the question. Vincent On 26 Jun 2012, at 19:03, Tony Chia wrote: > Hi Vincent, > I had the same question a few days ago and through trial and error and > watching the access and error log, I found p

Set environment variable via groovy

2012-06-27 Thread wildejenkins
Hi, I’ve been attempting to set an environment variable using groovy. So far the code I have is: import hudson.model.* import hudson.maven.* import hudson.tasks.* for(item in Hudson.instance.items) { item.buildWrappers.each{ if (it instanceof hudson.plugins.setenv.SetEnvBuildWrapper){

Envinject Plugin: Resolve environment variables on properties file path

2012-06-27 Thread Nicky Ramone
Hi It would be useful if we could use environment variables when specifying the "Properties File Path". When doing a promotion, I am currently trying to load a properties file that exists in the archived artifacts of that build. So, I used: ../builds/$BUILD_NUMBER/archive/my.properties Unfortunate

merge braiding with git pre build merges

2012-06-27 Thread dodtsair
I have found an interesting edge case with git. I would appreciate any ideas for a solution. Let me see if I can describe the simple case. I have two teams each with their own branch that are continuously integrating with each other. Instead of doing binary drops from each other via nexus t

Re: Envinject Plugin: Resolve environment variables on properties file path

2012-06-27 Thread Nicky Ramone
Looks like it does pick environment variables, but the BUILD_NUMBER being picked is the one that corresponds to the promotion #. Is there a way of obtaining the number of the build being promoted? On Wed, Jun 27, 2012 at 2:32 PM, Nicky Ramone wrote: > Hi > > It would be useful if we could use en

Re: Envinject Plugin: Resolve environment variables on properties file path

2012-06-27 Thread Nicky Ramone
It still behaves strangely. It doesn't seem to resolve variables. On Wed, Jun 27, 2012 at 2:45 PM, Nicky Ramone wrote: > Looks like it does pick environment variables, but the BUILD_NUMBER being > picked is the one that corresponds to the promotion #. > Is there a way of obtaining the number of

Re: Envinject Plugin: Resolve environment variables on properties file path

2012-06-27 Thread cjo
The behaviour is correct the default env variables that the promotion job sees are the one for its own runs (as it a job/project in itself). However it provides a different set of env variables, so that you can get at job being promoted, these are PROMOTED_URL - URL of the job being promoted

Re: Envinject Plugin: Resolve environment variables on properties file path

2012-06-27 Thread Nicky Ramone
Thank you, Chris. PROMOTED_NUMBER is the variable I'm looking for, but the Envinject plugin is not resolving it. On Wed, Jun 27, 2012 at 3:32 PM, cjo wrote: > > > The behaviour is correct the default env variables that the promotion job > sees are the one for its own runs (as it a job/project in

update job via config.xml post

2012-06-27 Thread phil swenson
I wrote some code that successfully updates Jenkins via an HTTP post of config.xml to jenkins at http://jenkinsserver/createItem?name=jobname This is fine…. but what if I want to update the config.xml? Thanks for any help!

Perl XML::Simple settings for configuring jobs

2012-06-27 Thread Jim Searle
I have perl scripts that automate setting up and modifying our job configurations using get/post to the api. But, have a few issues with keeping the xml properly formatted using the perl XML::Simple module. Does anyone have the proper settings for the XMLin and XMLout calls?

Re: Set environment variable via groovy

2012-06-27 Thread Grégory Boissinot
I suggest using EnvInject Jenkins plugin which provide some simple Groovy capabilities to set environment variables. On Wed, Jun 27, 2012 at 6:44 PM, wildejenkins wrote: > Hi, > > I’ve been attempting to set an environment variable using groovy. So far > the code I have is: > > import hudson.mode

Re: Perl XML::Simple settings for configuring jobs

2012-06-27 Thread Grégory Boissinot
Just a remark: Maybe Perl is not the best solution to do that with Jenkins There are lots of examples with Java/Groovy in the Wiki and in the web. Maybe a quick alternative to solve your issue. On Wed, Jun 27, 2012 at 9:44 PM, Jim Searle wrote: > I have perl scripts that automate setting up and

Re: Perl XML::Simple settings for configuring jobs

2012-06-27 Thread Jim Searle
Thanks, and I agree, but I have very little experience in Java/Groovy, so it's very painful to try and do everything I need. On Wed, Jun 27, 2012 at 1:41 PM, Grégory Boissinot wrote: > Just a remark: Maybe Perl is not the best solution to do that with Jenkins > There are lots of examples with Jav

Re: update job via config.xml post

2012-06-27 Thread Grégory Boissinot
Try to post your configuration file to the following url: http://jenkinsserver/job/j/config.xml On Wed, Jun 27, 2012 at 9:02 PM, phil swenson wrote: > I wrote some code that successfully updates Jenkins via an HTTP post > of config.xml to jenkins at > http://jenkinsserver/createItem?name=jobname

Re: Envinject Plugin: Resolve environment variables on properties file path

2012-06-27 Thread Grégory Boissinot
There is no interaction with the EnvInject plugin and the promotion plugin. Could you report a new feature? On Wed, Jun 27, 2012 at 8:39 PM, Nicky Ramone wrote: > Thank you, Chris. > PROMOTED_NUMBER is the variable I'm looking for, but the Envinject plugin > is not resolving it. > > On Wed, Jun

Re: Does Jenkins have something like CruiseControl's "ignoreFiles" attribute?

2012-06-27 Thread Larry Shatzer, Jr.
I'm not sure about the TFS plugin, but you could look at https://wiki.jenkins-ci.org/display/JENKINS/Pathignore+Plugin On Tue, Jun 26, 2012 at 2:37 PM, Chip Whitmer < cwhit...@servicerepairsolutions.com> wrote: > CruiseControl's configuration file includes an element > with an optional attribute

Re: Set environment variable via groovy

2012-06-27 Thread Sami Tikka
Maybe you need to create a new SetEnvBuildWrapper and add it to buildwrappers? -- Sami wildejenkins kirjoitti 27.6.2012 kello 19.44: > Hi, > > I’ve been attempting to set an environment variable using groovy. So far the > code I have is: > > import hudson.model.* > import hudson.maven.* > im

Re: running server and tests as a job

2012-06-27 Thread Sami Tikka
Jenkins does not solve this problem for you. You have to find your own way outside of Jenkins to start your server and run your tests. -- Sami prasanna santhanam kirjoitti 27.6.2012 kello 17.38: > I have a situation where I need to run a bunch of tests on a server that is > running and list

Re: Master slave problem

2012-06-27 Thread Sami Tikka
It probably makes sense to run Jenkins in a separate servlet container and not inside the same container you use for your testing. Like has been pointed out already, you do not even need tomcat for running Jenkins because Jenkins can be run with just: java -jar jenkins.war -- Sami Varghese Ren

Re: Can i run master and slave on same machine

2012-06-27 Thread giuliano
Yes, you can run master(s) and slave(s) on the same machine. As Mark says though: there are few reasons to do so. I do it so I can control a VM from the slave, including taking snapshots, reverting to snapshots, and doing reboots. Based on what you say later (5 webapps each of which binds to a

Re: Unfail a build manually?

2012-06-27 Thread Jim Searle
I have to do this with one of our processes as well, this is basically what I do: - The main job has 3 promotion criteria, RegressionsPassed, ComparePassed, CompareApproved. - The CompareApproved is a "manual" promotion - This job triggers all the regressions - Have a job called 'compare', whic

Re: Perl XML::Simple settings for configuring jobs

2012-06-27 Thread Mark Heiges
Can you use XML::Twig? It works well for me to modify configurations through the api. On Jun 27, 2012, at 4:45 PM, Jim Searle wrote: > Thanks, and I agree, but I have very little experience in Java/Groovy, > so it's very painful to try and do everything I need. > > On Wed, Jun 27, 2012 at 1:41

Re: "Restrict where this project can be run" not saving...

2012-06-27 Thread Xiaopan Bao
Hi How's this issue going on? I also met this problem, now it's block my projects. 在 2012年6月23日星期六UTC+8上午3时38分28秒,Jason Swager写道: > > We've been running Jenkins 1.471 for a few days, and just updated a couple > plugins (XTrigger ones). After the restart, we found that for no job can > set the

Re: "Restrict where this project can be run" not saving...

2012-06-27 Thread Xiaopan Bao
sorry, I saw the solution just now. thx very much, I will try now... 在 2012年6月23日星期六UTC+8上午3时38分28秒,Jason Swager写道: > > We've been running Jenkins 1.471 for a few days, and just updated a couple > plugins (XTrigger ones). After the restart, we found that for no job can > set the "Restrict wher

Re: Can i run master and slave on same machine

2012-06-27 Thread Varghese Renny
For running slave, first i need to setup jenkins instance on slave machine. After installing jenkins on slave machine then slave will automatically act as master right? Is there any UI for slave machine? or we are just using machine power? Can anyone suggest some url regarding this ? What makes