Deploy Plugin Issue

2013-04-23 Thread Harpreet singh Wadhwa
Hi,

I tried this plugin (deploy plugin), worked fine for tomcat (war file), but
when I tried using it for JBoss (ear file), the context got deployed, but
in tmp rather than default.

So on JBoss restart my app is gone.

Anyway to deploy it to default, or am I doing something wrong.

Thanks
--

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: SVN tagging issue - quick question

2012-12-31 Thread Harpreet singh Wadhwa
Don't know about any way through plugins, but still have couple of
workarounds.
* You can use the revision numbers, rather than head/tip. So from the
bash/batch section do svn update to keep it on the revision before running
the process.
* Mercurial (or any decentralized system) proves to be better in such
cases. As in mercurial you can point the second (and so on) jobs to pull
from the cloned repo (workspace) of the first job, in that way the revision
is controlled and stays where the first job ran.

Thanks

On Mon, Dec 31, 2012 at 11:26 AM, zw  wrote:

> Hi All
>
> We have a big chained job that runs for about an hour. Chained job meaning
> several jobs combined using downstream connections of jobs.
>
> We have the following problem, which is better explained in use case
> scenario:
>
> 3pm - User A checks in files into SVN directory X
> 315pm - Job B (has 4 subjobs) - and subjob 1 - checkouts files from SVN
> directory X, compiles and completes subjob run, then
> 320pm - subjob 2 - checksouts files from SVN directory Y and compiling
> 325pm - User C checks in files into SVN directory Z
> 335pm - subjob2 completes run and subjob 3 - checkouts files from SVN
> directory Z, compiles and completes subjob run, then
> 345pm - subjob4 checkouts files from SVN directory G, compiles and
> completes subjob run
> 4pm - subjob 4 completes run.
>
> Issue: For those files that User C checks in, we like to pick up the
> previous versions of those files, prior to User C's checkouts after the job
> B begins running and not pick up the files versions that User B checks in
> during the job B run.
>
> How can we do that in Jenkins/Hudson ?
>
> Thanks all for your contribution.
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: Possible to start/stop an existing EC2 instance

2012-12-31 Thread Harpreet singh Wadhwa
Not sure if the plugin can do it.
But I did the same by calling EC2 api's from batch/bash script section of
the job.

Thanks

On Sun, Dec 30, 2012 at 6:00 PM, james mintram wrote:

> Hi All,
>
> I wondered if it were possible, or not then a trivial update to the EC2
> plugin to allow it to start/stop an instance that already exists.
>
> Currently I have 2 Windows instances, 1 which is 24x7 and is covered in
> the free tier but its performance is lacking. The other is a High CPU
> instance that compiles code very fast, however I do not want this running
> 24x7 due to cost issues, so I have to manually start/stop it when I want to
> run a large set of builds.
>
> If there was a way to automatically start and stop an existing instance
> given its ID then it finish my CI configuration for now :)
>
> Regards,
> James Mintram
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: how to configure paths for "Publish JUnit test result report" plugin

2012-12-26 Thread Harpreet singh Wadhwa
@Kevin
Thanks for correcting me (on not a regex)

@zw
For you this will work. as it searches in all directories under Workspace
(in this case)

Thanks


On Wed, Dec 26, 2012 at 8:50 AM, zw  wrote:

> Hi Kevin
>
> Thanks for responding.
>
> My question isnt tied to one directory;
> eg **/Test-*.xml may be one but I have another set of test results under
> **/target/surefire-reports/*.xml
>
> Question: How do I input in that plugin box to pick up both 2 different
> test results directories ?
>
> Thanks
>
>
> On Wednesday, December 26, 2012 7:16:30 AM UTC-8, Kevin P. Fleming wrote:
>
>>  That's not a regular expression, it's an Ant pattern expression. They
>> are quite different, and serve different purposes.
>>
>> --
>> *From:*jenkins...@googlegroups.**com*To:*jenkins...@googlegroups.**com*
>> Date:*12/26 10:15
>> --
>>
>>  Regular expression is the key :-)
>> example: "**/Test-*.xml"
>>
>> This will get all the files starting with Test and ending with xml (from
>> any directory inside workspace).
>>
>> Thanks
>>
>> On Tue, Dec 25, 2012 at 12:47 PM, Z W  wrote:
>>
>>> Hi All
>>>
>>> We have different projects in a a build job producing different
>>> subdirectories of xml test results file
>>> How do we configure multiple paths in plugin "Publish JUnit test
>>> result report" to get the test results file from different directories
>>> path; paths are not similar.
>>>
>>> thanks
>>>
>>
>>
>>
>> --
>>
>> http://wharpreet.blogspot.com
>> http://linuxgazettes.blogspot.**com 
>> http://in.linkedin.com/in/**wharpreet
>>
>


-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: how to configure paths for "Publish JUnit test result report" plugin

2012-12-26 Thread Harpreet singh Wadhwa
Regular expression is the key :-)
example: "**/Test-*.xml"

This will get all the files starting with Test and ending with xml (from
any directory inside workspace).

Thanks

On Tue, Dec 25, 2012 at 12:47 PM, Z W  wrote:

> Hi All
>
> We have different projects in a a build job producing different
> subdirectories of xml test results file
> How do we configure multiple paths in plugin "Publish JUnit test
> result report" to get the test results file from different directories
> path; paths are not similar.
>
> thanks
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: hg pull has no effect

2012-11-26 Thread Harpreet singh Wadhwa
@HEAD should not force the plugin to crash.

Can you please ensure that there was no space in between the URL and @HEAD.
Syntax: @HEAD

If the error still exists then can you please paste the error logs here.

Thanks

On Mon, Nov 26, 2012 at 8:25 AM, Felipe Coelho  wrote:

> Hi
>
> I suspect this is time difference issue.
>> Check the time of your Mercurial system and Jenkins system, if I am right
>> then your Jenkins system would have some old date :-)
>>
>
> Actually the Mercurial system was behind the Jenkins server by ~3 seconds.
> Now both are running ntpd anyway, but the problem still persists. Note that
> I'm using the default quiet period of 5 seconds, so the Mercurial server
> actually has some time to catch up anyway
>
>
>> If that turns out to be true then you have two solutions:
>> * Either sync the time of both the machines.
>> * Or add @HEAD (at the end, without space) to the hg repo path in job
>> configuration.
>>
>> PS: In any case you can try this second solution, this should solve your
>> problem
>> Thanks
>>
>
> I've tried to append @HEAD to the hg repo but that only made the mercurial
> plugin crash.
>
> For now my ugly workaround is to insert a "hg pull -u" as the first
> command to run as a build step, at least it is getting new changesets
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: Builds of new configuration in a matrix build are lost after some time.

2012-11-23 Thread Harpreet singh Wadhwa
Are you using labels to run these jobs on, or dynamic slaves.
As I have seen similar issue with pool of slaves on which my job runs, next
time when the job runs on different slave it looses the part that is slave
specific.

If not then can you please be more specific about your job configuration.
I mean Master-slave setup etc.

Thanks

On Fri, Nov 23, 2012 at 1:35 AM, B.Latinville wrote:

> Hello,
> I'm using Jenkins 1.487 with matrix jobs. Debian master, linux & windows
> slaves.
>
> I've just made some changes in matrix jobs. I have added new configuration
> to a user defined axis.
> The matrix job run properly and I could see that new configuration was
> build properly :
> - The parent jobs console log says " newconfiguation completed with result
> SUCCESS"
> I can go to the the new configuration web page, see the logs and the
> artifacts.
> Looking at the matrix, the bullet corresponding to the new configuration
> is blue !
>
> After some time ( less than 2 hours) the result from the build is lost.
> The bullet corresponding to the new configuration is grey and indicates
> NOT RUN when I pass the mouse over it.
> So I cannot click on the bullet to see the build.
>
> If I go back to the parent job console, I can click on the
> "newconfiguation completed with result SUCCESS" link.
> I get a web page, where everything is empty : no Build History, empty
> change log, no artifacts.
>
> I run the job again . Can see the newconfiguration build. Some hours later
> , everything is gone again.
>
> Looking on the master node , in /va/lib/jenkins/jobs, I can see
> /var/lib/jenkins/jobs/*job_name*
> /configurations/../axis-xxx/newconfiguration/
> I this folder everything looks fine : "builds  config.xml  lastStable
> lastSuccessful"
> In lastSuccessful I can see the log, the build.xml.
> Could not understand why this does not appear in jenkins.
> Any Idea why the new build are lost ? This is really annoying. I've faced
> this issue on several jobs.
> I did not the the problem before has someone else seen this issue ?
>
> Thanks.
>
> Bertrand.
>
>
>
>
>
>
>
>
>
>
>


-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: Pass env variables to junit test from jenkins

2012-11-23 Thread Harpreet singh Wadhwa
Are you not using Maven Plugin (Maven type Job)?
As that has a textbox for arguments.

If you are using the maven job and still getting issue, then would need
more info on how are you trying to pass these argument, as it should be
simple enough, even if you run it from Bash shell / as Bach command (from
Jenkins job)

Thanks

On Fri, Nov 23, 2012 at 11:09 AM, Serega Sheypak
wrote:

> Hi, I have pretty silly question. Please help me.
> I do have a test which gets parameters from env variables:
>
> public Conf(){
> this.hostname = System.getProperty(WEBAPP_HOST);
> this.port =   System.getProperty(WEBAPP_PORT);
> this.contextPath = System.getProperty(WEBAPP_CONTEXTPATH);
> this.scoringServletname =
> System.getProperty(WEBAPP_SCORING_SERVLETNAME);
>
> }
> I do pass these variables in this way:
> mvn test -DargLine="-Dwebapp.port=12345 
> -Dwebapp.host=xxx.yyy.net-Dwebapp.contextpath=my-webapp 
> -Dwebapp.my.servletname=myServlet"
>
> How can I do the same using jenkins?
> I've tried a lot of stuff, but nothing helps. Conf ogject gets null values
> during instantiation.
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: hg pull has no effect

2012-11-23 Thread Harpreet singh Wadhwa
I suspect this is time difference issue.
Check the time of your Mercurial system and Jenkins system, if I am right
then your Jenkins system would have some old date :-)

If that turns out to be true then you have two solutions:
* Either sync the time of both the machines.
* Or add @HEAD (at the end, without space) to the hg repo path in job
configuration.

PS: In any case you can try this second solution, this should solve your
problem
Thanks

On Fri, Nov 23, 2012 at 10:15 AM, Felipe Coelho  wrote:

> I've installed Jenkins recently and have created a free-style project
> which is
> linked to a Mercurial repository.
>
> I've installed the Mercurial plugin and set the sources pointing to the
> correct
> URL. The user Jenkins is running under can access the repository without
> issues, and in fact a build right after a workspace cleanup works fine.
>
> I'm triggering a build using the URL JENKINS/job/myjob/build?token=mytoken
> and
> this works as well. I've also set a commit hook at my repository to hit
> this
> URL when a new changeset comes in, and it succesfully triggers the job
> build.
>
> The problem is that after the initial clone, a 'hg pull' from Jenkins
> itself
> has no effect on the result. Here's part of the build log right after a
> push
> (which triggers the build):
>
> [workspace] $ hg showconfig paths.default
>  [workspace] $ hg pull --rev default
> [workspace] $ hg update --clean --rev default
> 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
>
> Nothing is actually pulled from the repository, even though I _know_
> there's
> more data there to be pulled. If I step into the repository myself and run
> 'hg inc --rev default', the new changesets are shown. I can even pull the
> new
> data myself and trigger a new build on my own, but that's how I hoped it
> would
> work..
>
> I'm running Jenkins 1.491 and the Mercurial plugin version is 1.42, but
> this is
> happening from the first day I installed Jenkins, a couple weeks ago. How
> can I
> make the Mercurial plugin actually pull the new changesets with a new
> build?
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: How to keep slaves updated

2012-11-14 Thread Harpreet singh Wadhwa
Don't know how it happens with JNLP, but for Linux machines (over SSH).
It will update it automatically, when ever slave.jar is updated on master
and connection (ssh) is restarted.

PS: If you see connection logs (on the Jenkins UI), you will see it
updating the slave.jar file.
Thanks

On Wed, Nov 14, 2012 at 1:03 PM, Diogo Guerra  wrote:

> Hi, out setup we have two types of slaves:
>  - windows through jnlp with a windows service.
>  - linux with ssh.
>
> On the windows ones we had to download the jenkins windows version and
> configure the jenkins-slave.xml and then we only have the jenkins-slave
> service to start and not the jenkins master one.
>
> On linux we just had to give the ssh credentials and jenkins did its magic.
>
> Our master runs on CentOS and we update via yum. Now I'm wondering what is
> the procedure to update jenkins on slaves?
>
> On linux we need to re-install via the windows installer?
>
> What about linux slaves?
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: Can anoyone help determine the cause of a Jenkins crash.

2012-11-12 Thread Harpreet singh Wadhwa
Looks like Memory issue "*OutOfMemoryError: Java heap space*"
Try increasing in JAVA_OPTS

Thanks

On Mon, Nov 12, 2012 at 9:06 PM, MDKF  wrote:

> Hi All,
>  My Jenkins server died last night. I found the following text in the
> error log. Can anyone help me decipher what happened? Ive had these out of
> memory exceptions before.
>
>
> Nov 11, 2012 12:39:50 AM winstone.Logger logInternal
> SEVERE: Error while serving http://nwd2hscjnks/job/VectorGenerator/api/xml
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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:574)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
> at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203)
> at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
> at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
> at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
> at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
> at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
> at
> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> at
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
> at
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
> at
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
> at winstone.FilterConfiguration.execute(Fil