Re: Scriptler Question

2012-03-26 Thread domi
Since version 2.2 Scriptler also has a builder: 
https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin#ScriptlerPlugin-Builder
With this one its possible to add Scriptler build steps to any job (if you'r 
given the right permissions…).
I think the only thing missing is probably a direct variable exposing the build 
into a variable - I can add that feature if you need it, please open a feature 
request so we can track it.
domi

On 26.03.2012, at 20:14, James Carr wrote:

> Is there an easy way to setup scriptler so that it can modify files in
> the the project workspace?
> 
> I kept trying System.getenv('WORKSPACE') but to no avail.
> 
> Thanks,
> James



Questions about promoted builds plugin, PROMOTED_NUMBER, and deploy to maven repo

2012-03-26 Thread Carter Sanders
I'm trying to do something I think is pretty typical with the 
promoted_builds plugin, but I'm running into problems. Here's what I want 
to do-
1. Run a maven build
2. Preserve its pom.xml and target/*.jar
3. Create a promotion step where I push this jar to nexus.

I've tried two different approaches with limited success-

*Approach 1- Everything in one project*
1. Mark pom.xml,target/*jar as archived artifacts
2. Add a deploy to maven repo promotion action
3. Execute the manual promotion
I get this error-

Legacy code started this job.  No cause information is available
Building in workspace 
/export/data/build/dgcs/jenkins_experimental/jobs/sample/workspace
Promoting sample #25
[ERROR] No artifacts are recorded. Is this a Maven project?
build hudson.plugins.promoted_builds.tasks.RedeployBatchTaskPublisher@42b215c8 
FAILURE
Notifying upstream projects of job completion
Finished: FAILURE



*Approach 2 - Using a second project for deploying to nexus*
1. Create a deploy project (type maven 2)
2. Set up promotion stage to trigger deploy project
3. Promotion project uses artifact copy to copy pom.xml,target/*jar in 
place, using a specific build number of $PROMOTED_NUMBER
4. Add post build step to push to nexus

When I use this approach, I can get it to work with a permalink, but I 
can't seem to pass the proper build number. 
I get this error. It seems like the artifacts copy plugin isn't resolving 
$PROMOTED_NUMBER-

Building in workspace 
/export/data/build/dgcs/jenkins_experimental/jobs/sample_artifacts_deploy/workspace
ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-us...@googlegroups.comjava.lang.NumberFormatException 
:
 For input string: "$PROMOTED_NUMBER"
Also, the promotion reports a failure as success.


I should note that if I add a post build step to deploy to nexus, it works, so 
I'm sure my dpeloyment settings are good.

Does anybody have any advice of how to set this up properly? As I said before, 
if I could get it in one project that would be optimal, but any paproach that 
works would be most welcome.

I'm running jenkins 1.456 and promoted builds plugin 2.4
Thanks.




Re: Jenkins site down?

2012-03-26 Thread Sami Tikka
Nope, works for me too.

-- Sami

"Joshua J. Kugler"  kirjoitti 26.3.2012 kello 9.26:

> For me, checking less than 10 minutes after your post, the site is up 
> and running.  Maybe Finland is having connection problems? :)
> 
> j
> 
> On Sunday, March 25, 2012, Sampo N. elucidated thus:
>> Hi,
>> 
>> I've been setting up a new Jenkins system at work.  However, the
>> Jenkins site has been down almost all the time since Thursday.  Does
>> anyone have any knowledge when it should be up and running again?
>> 
>> Specifically, the front page most often results in only a few lines
>> of text (sometimes rendering a partial page), almost all pages under
>> jenkins-ci.org are unaccessable (except the wiki and bug tracker,
>> which have worked without problems the whole time) and plugin
>> updates / installation does not work (http://updates.jenkins-ci.org/
>> update-center.json gives a 404).  The site worked for a short while
>> on Thursday and once when I polled it during the weekend, but now is
>> down again.  I've tested accessing it from three different networks
>> in Finland, so I don't believe its a network issue.
>> 
>> The site being down makes creating a new installation almost
>> impossible due to the inability to download / install plugins.  I
>> haven't seen any info or questions on such an outage, and I'd like to
>> know if anyone could give an estimate when it would be back to
>> normal.
>> 
>> Thanks!
>> 
>> 
>> Best regards,
>>   Sampo Niskanen
> 
> 
> -- 
> Joshua J. Kugler - Fairbanks, Alaska
> Azariah Enterprises - Programming and Website Design
> jos...@azariah.com - Jabber: pedah...@gmail.com
> PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A


Re: Scriptler Question

2012-03-26 Thread HARDION Vincent
Hi,

Scriptler is not linked to any project (it's the convenient way of system 
script )
What 's why this variable is empty.


I think this variable is only available when running from a build like with the 
groovy script plugin.

BR

@vhardion


Le 26 mars 2012 à 20:15, "James Carr"  a écrit :

> Is there an easy way to setup scriptler so that it can modify files in
> the the project workspace?
> 
> I kept trying System.getenv('WORKSPACE') but to no avail.
> 
> Thanks,
> James


Re: EnvInject: injecting environment variables from URL

2012-03-26 Thread John Vacz
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.


On 25.03.2012 16:02, Grégory Boissinot wrote:

It should be fix with SharedObjects plugin 0.20.

On Fri, Mar 23, 2012 at 7:13 AM, John Vacz 
> 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" button,
Jenkins was trying to submit/redirect to
https://real-server-name/jenkins//manage, instead of (my guess)
https://my-local-proxy/jenkins/manage.

Is there any way to get around this? I tried lynx/w3m on the
remote server, but they seem to have difficulties dealing with the
"drop down button" gadget.

On 18.03.2012 22:51, Grégory Boissinot wrote:

Thanks for testing EnvInject plugin.

EnvInject is aimed at managing environment variables.
For your need, you can use the Shared Objects plugin.
It's a complement to the EnvInject plugin. It enables you to
share objects in your environment (such as in your case a
properties files through an URL) and inject its content as
environment variables with the EnvInject plugin.

You define your shared objects in the global Jenkins
configuration (>Manage Jenkins> Shared Objects) and check
'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, Mar 16, 2012 at 10:43 AM, John Vacz
mailto:mailing.list.collect...@googlemail.com>> wrote:

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 would be very handy if we can just
inject those variables directly from a http server (or our
anonymous SVN in this particular case). Meanwhile I add a
shell script to  download the .properties file and then use
EnvInject to inject them.

Furthermore, the variables are actually "global", it would be
great if we do not need to inject them in every job, but
globally in Jenkins. I noticed that in Jenkins configure
screen, there is a "Prepare jobs environment" section
(provided by EnvInject?), it seems that one can inject
viarables from a file with absolute path. But have some
concerns: a) this injection is rather "static", as the help
stated "You must restart the node (master/slave) for the
consideration of this property", that means the variables
cannot be changed on the fly (I did not get a chance to test
this, so I might be wrong); b) I am not sure if this
injection is transparent in a master-slave setting.

Any suggestion is appreciated.









Re: EnvInject: injecting environment variables from URL

2012-03-26 Thread John Vacz

Thanks for this quick upgrade!

However I got exception in log file (complete stacktrace in attachment):
 java.io.FileNotFoundException: /var/lib/jenkins/sharedObjects.xml (Is 
a directory)
I tried to remove the directory sharedObjects.xml, but it was created 
again when I pressed the save button. No error message on GUI.


Jenkins 1.455 (Debian native installation, winstone container)
envinject1.44
shared-objects0.20

If you need more information please let me know.

On 25.03.2012 16:02, Grégory Boissinot wrote:

It should be fix with SharedObjects plugin 0.20.

On Fri, Mar 23, 2012 at 7:13 AM, John Vacz 
> 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" button,
Jenkins was trying to submit/redirect to
https://real-server-name/jenkins//manage, instead of (my guess)
https://my-local-proxy/jenkins/manage.

Is there any way to get around this? I tried lynx/w3m on the
remote server, but they seem to have difficulties dealing with the
"drop down button" gadget.

On 18.03.2012 22:51, Grégory Boissinot wrote:

Thanks for testing EnvInject plugin.

EnvInject is aimed at managing environment variables.
For your need, you can use the Shared Objects plugin.
It's a complement to the EnvInject plugin. It enables you to
share objects in your environment (such as in your case a
properties files through an URL) and inject its content as
environment variables with the EnvInject plugin.

You define your shared objects in the global Jenkins
configuration (>Manage Jenkins> Shared Objects) and check
'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, Mar 16, 2012 at 10:43 AM, John Vacz
mailto:mailing.list.collect...@googlemail.com>> wrote:

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 would be very handy if we can just
inject those variables directly from a http server (or our
anonymous SVN in this particular case). Meanwhile I add a
shell script to  download the .properties file and then use
EnvInject to inject them.

Furthermore, the variables are actually "global", it would be
great if we do not need to inject them in every job, but
globally in Jenkins. I noticed that in Jenkins configure
screen, there is a "Prepare jobs environment" section
(provided by EnvInject?), it seems that one can inject
viarables from a file with absolute path. But have some
concerns: a) this injection is rather "static", as the help
stated "You must restart the node (master/slave) for the
consideration of this property", that means the variables
cannot be changed on the fly (I did not get a chance to test
this, so I might be wrong); b) I am not sure if this
injection is transparent in a master-slave setting.

Any suggestion is appreciated.







org.jenkinsci.plugins.sharedobjects.SharedObjectException: java.io.FileNotFoundException: /var/lib/jenkins/sharedObjects.xml (Is a directory)
at org.jenkinsci.plugins.sharedobjects.service.SharedObjectDataStore.writeSharedObjectsFile(SharedObjectDataStore.java:25)
at org.jenkinsci.plugins.sharedobjects.SharedObjectManagementResult.doSaveConfig(SharedObjectManagementResult.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:502)
at org.kohsuke.stapler.Stapler.invoke(Stapler.jav

Scriptler Question

2012-03-26 Thread James Carr
Is there an easy way to setup scriptler so that it can modify files in
the the project workspace?

I kept trying System.getenv('WORKSPACE') but to no avail.

Thanks,
James


Re: [Perforce-Plugin] Problems running p4 client "The system cannot find the file specified"

2012-03-26 Thread Rob Petti
Yeah, the wiki is in dire need of an update...

I've slightly changed the behavior in 1.3.11 so that if there is no 
perforce installation defined, it will use 'p4' by default.

On Wednesday, 21 March 2012 11:35:55 UTC-6, cjo wrote:
>
> You need to setup the perforce installations in the main configuration 
> page,
>
> goto http://yourserver:port/configure
>
> and scroll to find the perforce section and then click the add perforce 
> button
> enter the name of the installation and the path to the executable, of 
> setup the automatic installation option.
>
> Looks like the wiki screenshots show the versions pre 1.3.9 when this 
> change was made.
>
> Chris,
>
> On Wednesday, 21 March 2012 16:15:41 UTC, Ribram wrote:
>>
>> Jenkins 1.456 with Perforce Plugin 1.3.10 on both Windows and Linux.
>>
>> Cannot seem to invoke the p4 client (it is in the path).  Seeing the 
>> exception:
>>
>> Caught exception communicating with perforce. Could not run perforce 
>> command.com.tek42.perforce.PerforceException: Could not run perforce 
>> command.
>> at 
>> hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:88)
>> at 
>> com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:321)
>> at 
>> com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292)
>> at 
>> com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61)
>> at 
>> hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1325)
>> at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:725)
>> at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
>> at 
>> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579)
>> at 
>> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468)
>> at hudson.model.Run.run(Run.java:1410)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
>> at hudson.model.ResourceController.execute(ResourceController.java:88)
>> at hudson.model.Executor.run(Executor.java:238)
>> Caused by: java.io.IOException: Cannot run program "" (in directory 
>> "C:\Documents and Settings\dev\.jenkins\jobs\TestJob\workspace"): 
>> CreateProcess error=2, The system cannot find the file specified
>> at java.lang.ProcessBuilder.start(Unknown Source)
>> at hudson.Proc$LocalProc.(Proc.java:244)
>> at hudson.Proc$LocalProc.(Proc.java:216)
>> at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
>> at hudson.Launcher$ProcStarter.start(Launcher.java:338)
>> at 
>> hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:79)
>> ... 12 more
>> Caused by: java.io.IOException: CreateProcess error=2, The system cannot 
>> find the file specified
>> at java.lang.ProcessImpl.create(Native Method)
>> at java.lang.ProcessImpl.(Unknown Source)
>> at java.lang.ProcessImpl.start(Unknown Source)
>> ... 18 more
>> ERROR: Unable to communicate with perforce. Could not run perforce 
>> command.
>> Finished: FAILURE
>>
>> Notice 'cannot run program ""'
>>
>> On the wiki screenshots there appears to be a way to set the path to your 
>> p4 client which I am not seeing.  Also clicking 'Advanced' P4 Executable 
>> shows an empty read-only dropdown box.
>>
>

Re: Jenkins CVS plugin does not detect changes

2012-03-26 Thread Spiff79
I've created issue JENKINS-13227 to track this.

On Friday, March 23, 2012 2:42:04 PM UTC-4, Spiff79 wrote:
>
> The 4 hour difference corresponds to GMT-adjusted time, so it looks like 
> there's a mixup in time zones somewhere. Using CVS plugin 1.6 the cvs 
> polling command looked like this (executed at 5:26:21 PM EDT):
>
> cvs -q -z3 -n update -PdC -r d-chg00014229_op_brc_preimp-op-2012-02-27 -D 
> "Thursday, March 22, 2012 9:26:21 PM UTC"
>
> Is it possible that the CVS server isn't properly interpreting the -D 
> argument, either the parsing part or the time zone adjustment part?
>
> On Friday, March 23, 2012 2:23:51 PM UTC-4, Spiff79 wrote:
>>
>> I'm in the Eastern Time Zone (Montreal) with Daylight Saving Time in 
>> effect. The last cvs checkout command looked like this: 
>> cvs checkout -P -r d-chg00014229_op_brc_preimp-​op-2012-02-27 -D 23 Mar 
>> 2012 11:56:16 EDT -d portailInt portailInt 
>>
>> On Mar 23, 2:05 pm, Spiff79  wrote: 
>> > Even more details: Looking into the entries file, I'm seeing incorrect 
>> > times for recently updated files, a 4-hour difference. Could this be 
>> > related to the problem? 
>> > 
>> > On Mar 23, 1:49 pm, Spiff79  wrote: 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > > More details: the previous CVS plugin version was 1.6 and it was 
>> using 
>> > > the local cvsnt install. 
>> > 
>> > > On Mar 23, 12:04 pm, Spiff79  wrote: 
>> > 
>> > > > Hi all, 
>> > 
>> > > > We've been running Jenkins 1.451 and 1.454 on Windows XP against a 
>> CVS 
>> > > > repository for a few weeks now, without any problems. We've 
>> upgraded 
>> > > > the CVS plugin to version 2.1 this morning and since then, CVS 
>> changes 
>> > > > are not detected. The CVS polling log is triggered properly, tons 
>> of 
>> > > > "cvs rlog" instructions are sent but at the end "No changes" is 
>> > > > displayed. 
>> > 
>> > > > Am I missing some configuration option somewhere? 
>> > 
>> > > > Thanks.
>
>

Re: Switch JDK between build steps

2012-03-26 Thread domi
Maybe this plugin helps, it lets you expose the different JDK HOMEs as 
environment variables:
https://wiki.jenkins-ci.org/display/JENKINS/Tool+Environment+Plugin
/imod

On 26.03.2012, at 15:55, Andreas wrote:

> Hi, 
> 
> thanks for the feedback and the idea. Unfortunately I think, this will not 
> work in my setup. I've several builds running in parallel, also I want to 
> have the JDKs auto installed by Jenkins.
> 
> Kind Regards, Andreas.
> 
> Am Montag, 26. März 2012 13:15:33 UTC+2 schrieb Didier Durand:
> Hi,
> 
> To my knowledge Jenkins launches a separate jvm for each step you configure 
> in the "Build" section of your job configuration
> 
> So, I would try to alternate your build steps under Ant with shell build 
> steps and use these shell steps to switch the jvm/jre as you want  (via for 
> example. the linux "alternatives" command)
> 
> 
> regards 
> 
> didier
> 
> 
> Le lundi 26 mars 2012 11:54:15 UTC+2, Andreas a écrit :
> Hi,
> 
> 
> I face the issue that I have to use different JDKs for different build steps. 
> Namely I need to invoke the compile step in ant with a 1.5 JDK and run the 
> sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a 
> multi job setup is no solution here. Also I do not want to fork into a 
> different JDK in ant manually - actually only Jenkins knows where the JDK is 
> installed on the build node. 
> 
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
> 
> Is there an easy, already existing solution? Any ideas are welcome.
> 
> 
> Kind Regards, Andreas.



Re: Switch JDK between build steps

2012-03-26 Thread Andreas
Hi, 

thanks for the feedback and the idea. Unfortunately I think, this will not 
work in my setup. I've several builds running in parallel, also I want to 
have the JDKs auto installed by Jenkins.

Kind Regards, Andreas.

Am Montag, 26. März 2012 13:15:33 UTC+2 schrieb Didier Durand:
>
> Hi,
>
> To my knowledge Jenkins launches a separate jvm for each step you 
> configure in the "Build" section of your job configuration
>
> So, I would try to alternate your build steps under Ant with shell build 
> steps and use these shell steps to switch the jvm/jre as you want  (via for 
> example. the linux "alternatives" command)
>
>
> regards 
>
> didier
>
>
> Le lundi 26 mars 2012 11:54:15 UTC+2, Andreas a écrit :
>>
>> Hi,
>>
>>
>> I face the issue that I have to use different JDKs for different build 
>> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
>> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
>> job, so a multi job setup is no solution here. Also I do not want to fork 
>> into a different JDK in ant manually - actually only Jenkins knows where 
>> the JDK is installed on the build node. 
>>
>> I face a similar requirement for maven goals. 
>>  
>> I'm thinking about extending the ANT plugin to allow JDK selection in the 
>> advanced options and the set JAVA_HOME accordingly. 
>>
>> Is there an easy, already existing solution? Any ideas are welcome.
>>
>>
>> Kind Regards, Andreas.
>>
>

Re: Switch JDK between build steps

2012-03-26 Thread Didier Durand
Hi,

To my knowledge Jenkins launches a separate jvm for each step you configure 
in the "Build" section of your job configuration

So, I would try to alternate your build steps under Ant with shell build 
steps and use these shell steps to switch the jvm/jre as you want  (via for 
example. the linux "alternatives" command)


regards 

didier


Le lundi 26 mars 2012 11:54:15 UTC+2, Andreas a écrit :
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>


Switch JDK between build steps

2012-03-26 Thread Andreas
Hi,


I face the issue that I have to use different JDKs for different build 
steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
job, so a multi job setup is no solution here. Also I do not want to fork 
into a different JDK in ant manually - actually only Jenkins knows where 
the JDK is installed on the build node. 

I face a similar requirement for maven goals. 
 
I'm thinking about extending the ANT plugin to allow JDK selection in the 
advanced options and the set JAVA_HOME accordingly. 

Is there an easy, already existing solution? Any ideas are welcome.


Kind Regards, Andreas.


Re: How to start jenkins service with increased java heap memory

2012-03-26 Thread Jan Seidel
Hi Vladimir,

actually is it the file jenkins.xml/respectively hudson.xml not
config.xml...

--- SNIP ---
  java
  -Dhudson.DNSMultiCast.disabled=true -Xrs -Xmx256m -
Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%
\jenkins.war" --httpPort=8080
--- SNAP ---

Question is here, does it make sense to put the heap size with -Xms to
512 megs. Puttimg the value too high will eventually result in the
exact opposite behaviour as wanted. I have one server running with
assigned memory of 21 gigabyte but the heap size is 256meg and running
fine. Bringing the heap size higher did result in performance loss and/
or even java to fail at runtime.

Take care
Jan

On 26 Mrz., 08:34, Vladimir Zak  wrote:
> Hi,
>
> Thank you for a help but I am not able to find the any startup command
> for jenkis.
> Could you please add here the small snippet of xml file?
>
> Thanks.
>
> Vladimir
>
> 2012/3/25 Manuel Doninger :
>
>
>
>
>
>
>
> > In your Jenkins home directory there should be a file named config.xml.
> > In that file you can add configuration options for your service,
> > environment variables etc.
> > In the line with the startup command for Jenkins just add your parameters.
>
> > Regards,
> > Manuel
>
> > On Sun, Mar 25, 2012 at 18:00, Vladimir Zak  wrote:
> >> Hi Richard,
>
> >> I have tried that but after computer restart the parameters were not
> >> there not at all :(
>
> >> Vladimir
>
> >> 2012/3/25 Richard Lavoie :
> >>> Can't you open the services panel (run -> services.msc) and change the 
> >>> service start command to add these 2 additionnal parameters ?
>
> >>> Richard
>
> >>> On 2012-03-25, at 08:17, zakyn  wrote:
>
>  Hello,
>
>  I would like to ask you how to start jenkins service with increased
>  java heap memory
>  I would like to start jenkins with this java setting but my jenkins is
>  running as a windows service.
>
>  Is it possible to start jenkins service with these parameters -Xms512m
>  -Xmx2048m ? Does it mean that java for jenkins will use this setting?
>
>  Thank you for your help.
>
>  Vladimir