Re: Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread amol likhite
Hi Mark,

Thanks for the quick reply.

I am currently executing the Jmeter scripts through Jenkins and showing the 
generated data on the web site for continuous monitoring.
As per requirement some of the scripts need to be execute after every 5 
seconds and some of them after every 5 minutes.

I have created 2 jobs under Jenkins one will start after every 5 minutes 
and other will start after 2 minutes as currently I don't have solution to 
run every after 5 seconds.

Thanks in advance.

Regards,
Amol Likhite

On Wednesday, May 7, 2014 9:24:40 PM UTC+5:30, Mark Waite wrote:
>
> Couldn't the job be defined to do its planned steps then add a concluding 
> step which launches the job again.  Make the job delay be 5 seconds, and 
> let the job delay time handle the 5 seconds between jobs.
>
> Mark Waite
> On May 7, 2014 9:06 AM, "Scott Evans" > 
> wrote:
>
>> Amol,
>>
>> This seems rather unusual to need to have a job run every 5 seconds.  If 
>> you could let us know what you're trying to accomplish, there is most 
>> likely another way that's better than a continuously running job.
>>
>> Scott
>>
>>
>> On Wed, May 7, 2014 at 10:03 AM, Daniel Beck 
>> > wrote:
>>
>>> This isn't straightforward in Jenkins.
>>>
>>> Are you sure you're not using it as a golden hammer?
>>>
>>> On 07.05.2014, at 16:48, amol likhite > 
>>> wrote:
>>>
>>> > Hi,
>>> >
>>> > Want to schedule a Jenkins job which will run after every 5 seconds.
>>> >
>>> > Thanks in advance.
>>> >
>>> > Regards,
>>> > Amol Likhite
>>> >
>>> > --
>>> > 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-use...@googlegroups.com .
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> 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-use...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  -- 
>> 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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/d/optout.


Re: Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread amol likhite


On Wednesday, May 7, 2014 9:24:40 PM UTC+5:30, Mark Waite wrote:
>
> Couldn't the job be defined to do its planned steps then add a concluding 
> step which launches the job again.  Make the job delay be 5 seconds, and 
> let the job delay time handle the 5 seconds between jobs.
>
> Mark Waite
> On May 7, 2014 9:06 AM, "Scott Evans" > 
> wrote:
>
>> Amol,
>>
>> This seems rather unusual to need to have a job run every 5 seconds.  If 
>> you could let us know what you're trying to accomplish, there is most 
>> likely another way that's better than a continuously running job.
>>
>> Scott
>>
>>
>> On Wed, May 7, 2014 at 10:03 AM, Daniel Beck 
>> > wrote:
>>
>>> This isn't straightforward in Jenkins.
>>>
>>> Are you sure you're not using it as a golden hammer?
>>>
>>> On 07.05.2014, at 16:48, amol likhite > 
>>> wrote:
>>>
>>> > Hi,
>>> >
>>> > Want to schedule a Jenkins job which will run after every 5 seconds.
>>> >
>>> > Thanks in advance.
>>> >
>>> > Regards,
>>> > Amol Likhite
>>> >
>>> > --
>>> > 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-use...@googlegroups.com .
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> 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-use...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  -- 
>> 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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/d/optout.


Re: Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread amol likhite
Hi,

Thanks for the quick reply.

I am currently executing the Jmeter scripts through Jenkins and showing the 
generated data on the web site for continuous monitoring.
As per requirement some of the scripts need to be execute after every 5 
seconds and some of them after every 5 minutes.

I have created 2 jobs under Jenkins one will start after every 5 minutes 
and other will start after 2 minutes as currently I don't have solution to 
run every after 5 seconds.

Thanks in advance.

Regards,
Amol Likhite

On Wednesday, May 7, 2014 8:36:17 PM UTC+5:30, SA Evans wrote:
>
> Amol,
>
> This seems rather unusual to need to have a job run every 5 seconds.  If 
> you could let us know what you're trying to accomplish, there is most 
> likely another way that's better than a continuously running job.
>
> Scott
>
>
> On Wed, May 7, 2014 at 10:03 AM, Daniel Beck 
> > wrote:
>
>> This isn't straightforward in Jenkins.
>>
>> Are you sure you're not using it as a golden hammer?
>>
>> On 07.05.2014, at 16:48, amol likhite > 
>> wrote:
>>
>> > Hi,
>> >
>> > Want to schedule a Jenkins job which will run after every 5 seconds.
>> >
>> > Thanks in advance.
>> >
>> > Regards,
>> > Amol Likhite
>> >
>> > --
>> > 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-use...@googlegroups.com .
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> 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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/d/optout.


Re: xUnit - Failure

2014-05-07 Thread Vivekanand S V
One of the possibilities can be that the some of the generated files may
not be in proper junit format, this may happen when the test cases didnt
run for a particular class so the xml is generated but is not complete
(i.e., it doesn't follow the junit schema).

Just a guess, so give it a try.


On Thu, May 8, 2014 at 12:33 AM, Maneesh M P wrote:

> Hello,
>
>  we have configured Xunit plugin to our jenkins, we are seeing below
> error. Can anyone help ?
>
> *11:52:55* [xUnit] [INFO] - Starting to record.*11:52:55* [xUnit] [INFO] - 
> Processing JUnit*11:52:55* [xUnit] [INFO] - [JUnit] - 42 test report file(s) 
> were found with the pattern 'target/test-reports/*.xml' relative to 
> '/home/ab/jenkins/workspace/dragon-lib' for the testing framework 
> 'JUnit'.*11:52:55* [xUnit] [ERROR] - There is at least one problem. Check the 
> Jenkins system log for more information. (if you don't have configured yet 
> the system log before, you have to rebuild).*11:52:55* [xUnit] [INFO] - 
> Setting the build status to FAILURE*11:52:55* [xUnit] [INFO] - Stopping 
> recording.*11:52:55* Build step 'Publish xUnit test result report' changed 
> build result to FAILURE*11:52:55* Build did not succeed and the project is 
> configured to only push after a successful build, so no pushing will 
> occur.*11:52:55* Email was triggered for: Failure*11:52:55* Sending email for 
> trigger: Failure
>
>
> I have configured the log, but nothing is captured in the log as well. The 
> build is getting executed on a build server over SSH
>
>
> Thanks,
>
> Maneesh
>
>
>  --
> 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/d/optout.
>

-- 
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/d/optout.


Does the Android emulator work inside a VM?

2014-05-07 Thread Charles Chan
Summary: Does the Android emulator work inside a VM? Or must it be run on a 
bare metal machine?

I am trying to setup some automated tests using Jenkins with the Android 
plugin. The slave is a VM (on top) of VMWare ESXi, running Ubuntu Linux (32 
bit x86). When the emulator tries to start the VM, it shows an error 
"Failed to Initialize backend EGL display" and nothing happens.

[android] Using Android SDK: /home/hudson/hudson/tools/android-sdk

[android] Creating Android AVD: 
/home/hudson/.android/avd/hudson_en-US_160_1080x1920_android-19_x86.avd

[android] /home/hudson/hudson/tools/android-sdk/tools/android create avd -f 
-a -s 1080x1920 -n hudson_en-US_160_1080x1920_android-19_x86 -t android-19 
--abi x86
[android] Setting hardware properties:
hw.ramSize: 768
vm.heapSize: 64

$ /home/hudson/hudson/tools/android-sdk/platform-tools/adb start-server

$ /home/hudson/hudson/tools/android-sdk/tools/emulator -snapshot-list 
-no-window -avd hudson_en-US_160_1080x1920_android-19_x86
[android] Starting Android emulator and creating initial snapshot
$ /home/hudson/hudson/tools/android-sdk/tools/emulator -no-boot-anim -ports 
45507,44892 -prop persist.sys.language=en -prop persist.sys.country=US -avd 
hudson_en-US_160_1080x1920_android-19_x86 -no-snapshot-load 
-no-snapshot-save -wipe-data -no-window -noaudio -gpu off
* daemon not running. starting it now on port 39784 *
* daemon started successfully *
Failed to Initialize backend EGL display
...
emulator: WARNING: Could not initialize OpenglES emulation, using software 
renderer.

I tried with different abi (x86|x86) and options (combinations of -noaudio 
-gpu off). All failing. I also tried to login to the console and launch the 
emulator manually. All I see is a black emulator window. The emulator 
process is actively running ('top' command), but I don't see the home 
screen.

Thanks,
Charles

-- 
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/d/optout.


Re: REST API documentation - details on slave creation

2014-05-07 Thread Paul C
Thanks Eric.  I was off track searching for a REST solution and the link
you mentioned should work good for my scenario.


On Wed, May 7, 2014 at 10:36 AM, Eric Pyle  wrote:

>  There is some discussion of how to create or manage nodes (slaves) here:
> https://groups.google.com/forum/#!topic/jenkinsci-users/IKTAJhRreDw.
>
> Eric
>
> On 5/7/2014 12:51 PM, Paul C wrote:
>
> Where are some details on the REST api (besides the ../api path in
> Jenkins)?  I know some things are possible based on the Python API
> documented features but seems there must be a way to get REST API details
> without reverse engineering the Python API.
> --
> 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/d/optout.
>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/9XvQUPDFNJM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/d/optout.


561 seems to break remote parameterized plugin

2014-05-07 Thread Greg Dickie
Hi

  Ever since upgrading to 561 my remote build triggers are broken with:

Building on master in workspace /var/lib/jenkins/workspace/runner-automation
Triggering this remote job: automation
Not checking if the remote job automation is building.
This job is build #[32] on the remote server.
Triggering remote job now.
FATAL: Invalid JSON String
net.sf.json.JSONException: Invalid JSON String
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:103)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:84)
at 
org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:698)
at 
org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:529)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745)
at hudson.model.Build$BuildExecution.build(Build.java:198)
at hudson.model.Build$BuildExecution.doRun(Build.java:159)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
at hudson.model.Run.execute(Run.java:1704)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)

562 did not change anything. Anyone else seen this?

Thanks,
Greg

-- 
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/d/optout.


Re: Perforce: merge files from a continuous directory to an integration directory...

2014-05-07 Thread Stuart Rowe
Try this approach (there may be typos / gotchas - it's completely untested)

1) Enable Perforce SCM on your integration project in Jenkins
- set up the client spec 'myclientspec' to use the mapping:
   //project/dev/... //myclientspec/dev/...
   //project/int/... //myclientspec/int/...

2)  Enable 'Use View Mask', but just for polling (I haven't tried this 
feature yet so I'm just guessing it will work for you)
 - set the view mask to be //project/dev/...

3) Under Build Triggers, check Poll SCM
- any submitted changes under the //project/int/... branch should now 
trigger your integration project in Jenkins
- since we're NOT using the view mask for syncing, both branches will 
be synced to head when the build starts (this is good for continuous 
integration)
- perforce plugin stores the changelist it sync'd to in the environment 
variable 'P4_CHANGELIST' (this is the latest changelist in the Dev branch 
that triggered the build!)

4) Now we want to integrate from the Dev banch to the integration branch:

   p4 integrate -d -i -t //project/dev/...@%P4_CHANGELIST% //project/int/...
   p4 resolve -a 

   // test the build

  p4 submit -f revertunchanged -d "Integration Build" 

On Wednesday, 7 May 2014 11:09:17 UTC-7, Mark Wilhelm wrote:
>
> ok, some more "work"...
>
> I put these commands in the "EWbc" window and it works:
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx change -o
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx integrate -d -i -t 
> //Project/dev... //Workspace/Project/int...
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx resolve -a
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx submit -f 
> revertunchanged -d "Integration Build" 
>
> BUT, if I run it again, it fails:
> "No files to submit from the default changelist.
>
> D:\workspaces>exit 1"
>
> While this makes sense, is there: 1) a way to suppress the submit from 
> returning a non-zero (i.e. an error) or 2) A better way altogether?
>
>
> Thanks...
>
> On Wednesday, May 7, 2014 9:01:04 AM UTC-5, Mark Wilhelm wrote:
>>
>> Just a basic setup:
>> depot/project/dev/src
>> depot/project/int/src
>>
>> I have a continuous build running on the "dev" structure every few 
>> minutes. I have a nightly build that runs on the "int" structure. When you 
>> ask "why don't you want to merge?", are you asking from a manual 
>> perspective? 
>>
>> I would like my "dev" build to run. When the "int" build runs, I would 
>> like it to check if there were any changes on the "dev" branch/directory 
>> and move them over. Then build what's there.
>>
>> I have used some of the commands in a "Execute Windows batch command" 
>> build step, but thought that the "Source Code Management" plugin would be 
>> where I would want to do that.
>>
>> In the window I used the following commands:
>> "C:\Program Files\Perforce\"p4 -u build-user -P xxx change -o
>> "C:\Program Files\Perforce\"p4 -u build-user -P xxx integrate -i -d -t 
>> //project/dev... //JenkinsJob/workspace/int...
>> "C:\Program Files\Perforce\"p4 -u build-user -P xxx submit -f 
>> revertunchanged -d "Integration Build"
>>
>> On the integrate I get: - all revision(s) already integrated.
>> On the integrate I get: No files to submit from the default changelist.
>> and the "Execute Windows batch command" fails the build "Build step 
>> 'Execute Windows batch command' marked build as failure. Even though there 
>> was a change list listed by Jenkins.
>>
>> I'm all for changing my direction if there is a more standard/better way 
>> of implementing this.
>>
>> Thoughts?
>>
>>
>>
>> On Wednesday, May 7, 2014 2:58:51 AM UTC-5, Stuart Rowe wrote:
>>>
>>> Can you describe your branch structure a little more?
>>>
>>> How are your integration builds triggered? If you're trying to move 
>>> changes from your development branch to another branch why don't you want 
>>> to merge? 
>>>
>>> Conceptually I would approach this as:
>>>
>>> 1)  start an integration of your Dev branch up to some changelist to the 
>>> target branch
>>>
>>> (look up "p4 integrate")
>>>
>>>
>>> 2) now you have a pending integration changelist with the changes from 
>>> your Dev branch applied to your target branch. (assuming there were no 
>>> conflicts that couldn't be resolved).
>>>
>>> Run whatever builds/tests you have set up to verify the changes
>>>
>>> 3) a) if the builds and tests were successful, submit the changelist
>>>
>>> (look up "p4 submit")
>>>
>>> b) if anything failed, revert the changelist and make the appropriate 
>>> fixes in your Dev branch
>>>
>>>

-- 
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/d/optout.


Re: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-07 Thread Charles Chan


On Wednesday, May 7, 2014 1:47:59 AM UTC-7, nigelm wrote:
>
>
>  
>>
>>>  
>>> From your reply, I am even more concerned with disproportionally high 
>>> number of the blocked threads (120) compare to offline slaves (2 at the 
>>> time), as it sounds like it should be closer to 1:1?
>>>
>>
>> Yes, it sounds like there is a race condition between the post disconnect 
>> tasks and the reconnect tasks: 
>> https://github.com/jenkinsci/ssh-slaves-plugin/blob/ssh-slaves-1.6/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java#L1152is
>>  blocking until the slave is connected... but the slave cannot connect 
>> until the disconnect tasks are complete... 
>>   
>>
>>>
>>>
> ​Do you have 'dead' slaves, and what's your logging configuration like?
>
> Some slaves appear offline in Jenkins periodically. (The instances are 
accessible, but Jenkins cannot to connect to it.)

Our logging configuration:
winstone - INFO
org.apache.sshd - WARNING
(default) - INFO

I'm tracking down a similar problem, in that our Jenkins instance (which 
> isn't that large) slows to the state of the UI timing out.
>
>
Not sure if it is the same problem. In our case, the Jenkins server is 
still responsive, only the SSH slaves are offline. (We did experience a 
problem with Jenkins 1.562 due 
to https://issues.jenkins-ci.org/browse/JENKINS-22734. Causing the server 
to run out of memory and UI to become non-responsive and eventual server 
hang. Downgrade back to 1.559 seems to solve it. The monitoring plugin 
helps debug some of these issues.)
 
We also also see occasionally "Proxy Error" when viewing the live build log 
and viewing the summary, but this is not an SSH issue.
java.nio.channels.ClosedChannelException
at 
sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:265)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:474)
at 
hudson.remoting.SocketChannelStream$2.write(SocketChannelStream.java:62)
at java.nio.channels.Channels.writeFullyImpl(Channels.java:78)
at java.nio.channels.Channels.writeFully(Channels.java:101)
at java.nio.channels.Channels.access$000(Channels.java:61)
at java.nio.channels.Channels$1.write(Channels.java:174)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1876)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1785)
at 
java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1285)
at 
java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1230)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1426)
at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at 
java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)
at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
at hudson.remoting.Command.writeTo(Command.java:83)
at 
hudson.remoting.ClassicCommandTransport.write(ClassicCommandTransport.java:51)
at hudson.remoting.Channel.send(Channel.java:545)
at hudson.remoting.Request.callAsync(Request.java:208)
at hudson.remoting.Channel.callAsync(Channel.java:766)
at 
hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor.monitor(AbstractAsyncNodeMonitorDescriptor.java:76)
at 
hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:280)

java.nio.channels.ClosedChannelException
at 
sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:265)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:474)
at 
hudson.remoting.SocketChannelStream$2.write(SocketChannelStream.java:62)
at java.nio.channels.Channels.writeFullyImpl(Channels.java:78)
at java.nio.channels.Channels.writeFully(Channels.java:101)
at java.nio.channels.Channels.access$000(Channels.java:61)
at java.nio.channels.Channels$1.write(Channels.java:174)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1876)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1785)
at 
java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1285)
at 
java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1230)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1426)
at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at 
java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)
at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
at hudson.remoting.Command.writeTo(Command.java:83)
at 
hudson.remoting.ClassicCommandTransport.write(ClassicCommandTransport.java:51)
at hudson.remoting.Channel.send(Channel.java:545)
   

xUnit - Failure

2014-05-07 Thread Maneesh M P
Hello,

 we have configured Xunit plugin to our jenkins, we are seeing below error. 
Can anyone help ?

*11:52:55* [xUnit] [INFO] - Starting to record.*11:52:55* [xUnit] [INFO] - 
Processing JUnit*11:52:55* [xUnit] [INFO] - [JUnit] - 42 test report file(s) 
were found with the pattern 'target/test-reports/*.xml' relative to 
'/home/ab/jenkins/workspace/dragon-lib' for the testing framework 
'JUnit'.*11:52:55* [xUnit] [ERROR] - There is at least one problem. Check the 
Jenkins system log for more information. (if you don't have configured yet the 
system log before, you have to rebuild).*11:52:55* [xUnit] [INFO] - Setting the 
build status to FAILURE*11:52:55* [xUnit] [INFO] - Stopping 
recording.*11:52:55* Build step 'Publish xUnit test result report' changed 
build result to FAILURE*11:52:55* Build did not succeed and the project is 
configured to only push after a successful build, so no pushing will 
occur.*11:52:55* Email was triggered for: Failure*11:52:55* Sending email for 
trigger: Failure


I have configured the log, but nothing is captured in the log as well. The 
build is getting executed on a build server over SSH


Thanks,

Maneesh


-- 
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/d/optout.


Re: Perforce: merge files from a continuous directory to an integration directory...

2014-05-07 Thread Mark Wilhelm
ok, some more "work"...

I put these commands in the "EWbc" window and it works:
"C:\Program Files\Perforce\"p4 -u build-user -P xxx change -o
"C:\Program Files\Perforce\"p4 -u build-user -P xxx integrate -d -i -t 
//Project/dev... //Workspace/Project/int...
"C:\Program Files\Perforce\"p4 -u build-user -P xxx resolve -a
"C:\Program Files\Perforce\"p4 -u build-user -P xxx submit -f 
revertunchanged -d "Integration Build" 

BUT, if I run it again, it fails:
"No files to submit from the default changelist.

D:\workspaces>exit 1"

While this makes sense, is there: 1) a way to suppress the submit from 
returning a non-zero (i.e. an error) or 2) A better way altogether?


Thanks...

On Wednesday, May 7, 2014 9:01:04 AM UTC-5, Mark Wilhelm wrote:
>
> Just a basic setup:
> depot/project/dev/src
> depot/project/int/src
>
> I have a continuous build running on the "dev" structure every few 
> minutes. I have a nightly build that runs on the "int" structure. When you 
> ask "why don't you want to merge?", are you asking from a manual 
> perspective? 
>
> I would like my "dev" build to run. When the "int" build runs, I would 
> like it to check if there were any changes on the "dev" branch/directory 
> and move them over. Then build what's there.
>
> I have used some of the commands in a "Execute Windows batch command" 
> build step, but thought that the "Source Code Management" plugin would be 
> where I would want to do that.
>
> In the window I used the following commands:
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx change -o
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx integrate -i -d -t 
> //project/dev... //JenkinsJob/workspace/int...
> "C:\Program Files\Perforce\"p4 -u build-user -P xxx submit -f 
> revertunchanged -d "Integration Build"
>
> On the integrate I get: - all revision(s) already integrated.
> On the integrate I get: No files to submit from the default changelist.
> and the "Execute Windows batch command" fails the build "Build step 
> 'Execute Windows batch command' marked build as failure. Even though there 
> was a change list listed by Jenkins.
>
> I'm all for changing my direction if there is a more standard/better way 
> of implementing this.
>
> Thoughts?
>
>
>
> On Wednesday, May 7, 2014 2:58:51 AM UTC-5, Stuart Rowe wrote:
>>
>> Can you describe your branch structure a little more?
>>
>> How are your integration builds triggered? If you're trying to move 
>> changes from your development branch to another branch why don't you want 
>> to merge? 
>>
>> Conceptually I would approach this as:
>>
>> 1)  start an integration of your Dev branch up to some changelist to the 
>> target branch
>>
>> (look up "p4 integrate")
>>
>>
>> 2) now you have a pending integration changelist with the changes from 
>> your Dev branch applied to your target branch. (assuming there were no 
>> conflicts that couldn't be resolved).
>>
>> Run whatever builds/tests you have set up to verify the changes
>>
>> 3) a) if the builds and tests were successful, submit the changelist
>>
>> (look up "p4 submit")
>>
>> b) if anything failed, revert the changelist and make the appropriate 
>> fixes in your Dev branch
>>
>>

-- 
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/d/optout.


Error starting a windows slave from a linux master over SSH

2014-05-07 Thread Badal
Hi,
my jenkins master is running  on Linux. 
Slave is on a windows server that has freeSSH installed. I have a freeSSH 
user created and named as "jenkinslave". I can successfully SSH from the 
Linux box to the windows slave.
Windows does not have Cygwin.
 
I am trying to start the slave from the Linux with the "Launch slave agents 
on Unix machines via SSH " launch method as I did not see any option to 
start windows slave via SSH. I would like to start slave over SSH as the 
windows service option has some limitations for GUI test. I would like to 
stay away from Cygwin as it is heavy. I am not sure if Cyqwin is a must 
requirement or not.

When master tries to launch the slave I get the following error. The 
credential used is the private key for "jenkinslave".



[05/07/14 11:27:37] [SSH] Opening SSH connection to 172.17.105.197:22.
[05/07/14 11:27:37] [SSH] Authentication successful.
SSH connection reports a garbage before a command execution.
Check your .bashrc, .profile, and so on to make sure it is quiet.
The received junk text is as follows:
Unable to execute command or shell on remote system: Failed to Execute process.

hudson.AbortException
at 
hudson.plugins.sshslaves.SSHLauncher.verifyNoHeaderJunk(SSHLauncher.java:713)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:590)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)
at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[05/07/14 11:27:37] [SSH] Connection closed.



Any help is appreciated.
Thanks,
Badal

-- 
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/d/optout.


Re: REST API documentation - details on slave creation

2014-05-07 Thread Eric Pyle
There is some discussion of how to create or manage nodes (slaves) here: 
https://groups.google.com/forum/#!topic/jenkinsci-users/IKTAJhRreDw.


Eric

On 5/7/2014 12:51 PM, Paul C wrote:
Where are some details on the REST api (besides the ../api path in 
Jenkins)?  I know some things are possible based on the Python API 
documented features but seems there must be a way to get REST API 
details without reverse engineering the Python API.

--
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/d/optout.


--
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/d/optout.


Re:Jenkins can't connect to a Git server via SSH using username/password

2014-05-07 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
If you are using one of the recent Git plugins, you'll have to put your 
credentials in the Credentials area in Jenkins, not in the URL itself.

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: May  7 2014 12:25:38


We are trying to connect to a Git repository via SSH (not Github) using 
username/password (we're not using keys)  and the Git plugin but we're getting 
the following error:
Failed to connect to repository : Command "git ls-remote -h 
ssh://account@repository/path/toApplication HEAD" returned status code 128:
stdout: 
stderr: Permission denied, please try again. 
Permission denied, please try again. 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). 
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
--
If we use the anonymous access or change the access type from SSH to HTTPS, it 
works fine, but we should be able to use the SSH with user/password without 
having to add the public/private keys.
Aleyda
-- 
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/d/optout.

-- 
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/d/optout.


REST API documentation - details on slave creation

2014-05-07 Thread Paul C
Where are some details on the REST api (besides the ../api path in 
Jenkins)?  I know some things are possible based on the Python API 
documented features but seems there must be a way to get REST API details 
without reverse engineering the Python API.

-- 
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/d/optout.


Jenkins can't connect to a Git server via SSH using username/password

2014-05-07 Thread Aleyda Galaviz


We are trying to connect to a Git repository via SSH (not Github) using 
username/password (we're not using keys)  and the Git plugin but we're 
getting the following error:

Failed to connect to repository : Command "git ls-remote -h 
ssh://account@repository/path/toApplication HEAD" returned status code 128:
stdout: 
stderr: Permission denied, please try again. 
Permission denied, please try again. 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
--

If we use the anonymous access or change the access type from SSH to HTTPS, 
it works fine, but we should be able to use the SSH with user/password 
without having to add the public/private keys.

Aleyda

-- 
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/d/optout.


Re: Jenkins EMail-ext plugin sends groovy code in the Email body

2014-05-07 Thread Slide
You can look here:
https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates


On Wed, May 7, 2014 at 9:10 AM, Vel Ganesh  wrote:

> Thank You. I am a newbie on this Topic. Can you please share few links for
> samples of groovy/jelly templates?
>
>
> On Wednesday, May 7, 2014 5:32:48 PM UTC+5:30, Vel Ganesh wrote:
>>
>> My Extended E-mail Notification 'Default Content' is set as below:
>>
>> 
>> 
>> *Execution Results :*
>> Status : $BUILD_STATUS
>> Tests run : $testCount
>> Passed : $testPassed
>> Failures : $testFailed
>> Skipped : $testSkipped
>> Build URL : $BUILD_URL
>> 
>> 
>>
>> My Extended E-mail Notification 'Default Pre-send Script' is set as
>> below:
>>
>> def testResult = build.testResultAction
>> def testCount = testResult.getTotalCount()
>> def testPassed = testResult.getTotalCount() - testResult.getFailCount() -
>> testResult.getSkipCount()
>> def testFailed = testResult.getFailCount()
>> def testSkipped = testResult.getSkipCount()
>>
>> The E-Mail get successfully triggered on every build, but the variables
>> ($testCount, $testPassed etc.) are not replaced by their values. The text
>> '$testPassed' is being displayed in the E-Mail body.
>>
>> Please let me know, what I am missing here.
>>
>  --
> 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/d/optout.
>



-- 
Website: http://earl-of-code.com

-- 
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/d/optout.


Re: Jenkins EMail-ext plugin sends groovy code in the Email body

2014-05-07 Thread Vel Ganesh
Thank You. I am a newbie on this Topic. Can you please share few links for 
samples of groovy/jelly templates?

On Wednesday, May 7, 2014 5:32:48 PM UTC+5:30, Vel Ganesh wrote:
>
> My Extended E-mail Notification 'Default Content' is set as below: 
>
> 
> 
> *Execution Results :*
> Status : $BUILD_STATUS
> Tests run : $testCount
> Passed : $testPassed
> Failures : $testFailed
> Skipped : $testSkipped
> Build URL : $BUILD_URL
> 
> 
>
> My Extended E-mail Notification 'Default Pre-send Script' is set as below: 
>
> def testResult = build.testResultAction 
> def testCount = testResult.getTotalCount() 
> def testPassed = testResult.getTotalCount() - testResult.getFailCount() - 
> testResult.getSkipCount() 
> def testFailed = testResult.getFailCount() 
> def testSkipped = testResult.getSkipCount() 
>
> The E-Mail get successfully triggered on every build, but the variables 
> ($testCount, $testPassed etc.) are not replaced by their values. The text 
> '$testPassed' is being displayed in the E-Mail body. 
>
> Please let me know, what I am missing here.
>

-- 
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/d/optout.


Re: Jenkins slave going 'bang' with OOM

2014-05-07 Thread Larry Shatzer, Jr.
Downgrade to 1.559. Or run the latest snapshot.

(See https://issues.jenkins-ci.org/browse/JENKINS-22734 for more details)


On Wed, May 7, 2014 at 9:56 AM, Nigel Magnay  wrote:

> I made the error of upgrading my Jenkins installation, and now I'm getting
> my slaves dying with an OOM (which it's never done previously):
>
> java.io.IOException: Unexpected reader termination
>   at 
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)
> Caused by: java.lang.OutOfMemoryError: Java heap space
>   at java.util.Arrays.copyOf(Arrays.java:2271)
>   at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
>   at 
> java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
>   at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
>   at 
> hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:87)
>   at hudson.remoting.ChunkedInputStream.read(ChunkedInputStream.java:46)
>   at 
> hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:88)
>   at 
> hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:33)
>   at 
> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>   at 
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
>
>
>
> In the build, it dies trying to transfer artifacts in order to archive them
>
>
> java.io.IOException 
> : 
> java.io.IOException: Failed to extract 
> /home/jenkins/workspace/customer-dev-main/installer/transfer of 2 files
>   at hudson.FilePath.readFromTar(FilePath.java:2095) 
> 
>   at hudson.FilePath.copyRecursiveTo(FilePath.java:2007) 
> 
>   at 
> jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57)
>  
> 
>   at 
> hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:474) 
> 
>   at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:845)
>  
> 
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519) 
> 
>   at hudson.model.Run.execute(Run.java:1703) 
> 
>   at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) 
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:88) 
> 
>   at hudson.model.Executor.run(Executor.java:231) 
> 
> Caused by: java.io.IOException 
> at 
> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:177) 
> 
>   at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61) 
> 
>   at 
> com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175) 
> 
>   at 
> com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) 
> 
>   at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) 
> 
>   at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) 
> 
>   at 
> hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345) 
> 

Jenkins slave going 'bang' with OOM

2014-05-07 Thread Nigel Magnay
I made the error of upgrading my Jenkins installation, and now I'm getting
my slaves dying with an OOM (which it's never done previously):

java.io.IOException: Unexpected reader termination
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2271)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
at 
java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
at 
hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:87)
at hudson.remoting.ChunkedInputStream.read(ChunkedInputStream.java:46)
at 
hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:88)
at 
hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:33)
at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)



In the build, it dies trying to transfer artifacts in order to archive them


java.io.IOException
:
java.io.IOException: Failed to extract
/home/jenkins/workspace/customer-dev-main/installer/transfer of 2
files
at hudson.FilePath.readFromTar(FilePath.java:2095)

at hudson.FilePath.copyRecursiveTo(FilePath.java:2007)

at 
jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57)

at 
hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:474)

at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:845)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)

at hudson.model.Run.execute(Run.java:1703)

at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:231)

Caused by: java.io.IOException
 at
hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:177)

at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)

at 
com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)

at 
com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)

at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257)

at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223)

at 
hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345)

at java.io.FilterInputStream.read(FilterInputStream.java:107)

at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)


Re: Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread Mark Waite
Couldn't the job be defined to do its planned steps then add a concluding
step which launches the job again.  Make the job delay be 5 seconds, and
let the job delay time handle the 5 seconds between jobs.

Mark Waite
On May 7, 2014 9:06 AM, "Scott Evans"  wrote:

> Amol,
>
> This seems rather unusual to need to have a job run every 5 seconds.  If
> you could let us know what you're trying to accomplish, there is most
> likely another way that's better than a continuously running job.
>
> Scott
>
>
> On Wed, May 7, 2014 at 10:03 AM, Daniel Beck  wrote:
>
>> This isn't straightforward in Jenkins.
>>
>> Are you sure you're not using it as a golden hammer?
>>
>> On 07.05.2014, at 16:48, amol likhite  wrote:
>>
>> > Hi,
>> >
>> > Want to schedule a Jenkins job which will run after every 5 seconds.
>> >
>> > Thanks in advance.
>> >
>> > Regards,
>> > Amol Likhite
>> >
>> > --
>> > 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/d/optout.
>>
>> --
>> 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/d/optout.
>>
>
>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread Scott Evans
Amol,

This seems rather unusual to need to have a job run every 5 seconds.  If
you could let us know what you're trying to accomplish, there is most
likely another way that's better than a continuously running job.

Scott


On Wed, May 7, 2014 at 10:03 AM, Daniel Beck  wrote:

> This isn't straightforward in Jenkins.
>
> Are you sure you're not using it as a golden hammer?
>
> On 07.05.2014, at 16:48, amol likhite  wrote:
>
> > Hi,
> >
> > Want to schedule a Jenkins job which will run after every 5 seconds.
> >
> > Thanks in advance.
> >
> > Regards,
> > Amol Likhite
> >
> > --
> > 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/d/optout.
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread Daniel Beck
This isn't straightforward in Jenkins.

Are you sure you're not using it as a golden hammer?

On 07.05.2014, at 16:48, amol likhite  wrote:

> Hi,
> 
> Want to schedule a Jenkins job which will run after every 5 seconds.
> 
> Thanks in advance.
> 
> Regards,
> Amol Likhite
> 
> -- 
> 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/d/optout.

-- 
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/d/optout.


Want to schedule a Jenkins job which will run after every 5 seconds

2014-05-07 Thread amol likhite
Hi,

Want to schedule a Jenkins job which will run after every 5 seconds.

Thanks in advance.

Regards,
Amol Likhite

-- 
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/d/optout.


Re: Perforce: merge files from a continuous directory to an integration directory...

2014-05-07 Thread Mark Wilhelm
Just a basic setup:
depot/project/dev/src
depot/project/int/src

I have a continuous build running on the "dev" structure every few minutes. 
I have a nightly build that runs on the "int" structure. When you ask "why 
don't you want to merge?", are you asking from a manual perspective? 

I would like my "dev" build to run. When the "int" build runs, I would like 
it to check if there were any changes on the "dev" branch/directory and 
move them over. Then build what's there.

I have used some of the commands in a "Execute Windows batch command" build 
step, but thought that the "Source Code Management" plugin would be where I 
would want to do that.

In the window I used the following commands:
"C:\Program Files\Perforce\"p4 -u build-user -P xxx change -o
"C:\Program Files\Perforce\"p4 -u build-user -P xxx integrate -i -d -t 
//project/dev... //JenkinsJob/workspace/int...
"C:\Program Files\Perforce\"p4 -u build-user -P xxx submit -f 
revertunchanged -d "Integration Build"

On the integrate I get: - all revision(s) already integrated.
On the integrate I get: No files to submit from the default changelist.
and the "Execute Windows batch command" fails the build "Build step 
'Execute Windows batch command' marked build as failure. Even though there 
was a change list listed by Jenkins.

I'm all for changing my direction if there is a more standard/better way of 
implementing this.

Thoughts?



On Wednesday, May 7, 2014 2:58:51 AM UTC-5, Stuart Rowe wrote:
>
> Can you describe your branch structure a little more?
>
> How are your integration builds triggered? If you're trying to move 
> changes from your development branch to another branch why don't you want 
> to merge? 
>
> Conceptually I would approach this as:
>
> 1)  start an integration of your Dev branch up to some changelist to the 
> target branch
>
> (look up "p4 integrate")
>
>
> 2) now you have a pending integration changelist with the changes from 
> your Dev branch applied to your target branch. (assuming there were no 
> conflicts that couldn't be resolved).
>
> Run whatever builds/tests you have set up to verify the changes
>
> 3) a) if the builds and tests were successful, submit the changelist
>
> (look up "p4 submit")
>
> b) if anything failed, revert the changelist and make the appropriate 
> fixes in your Dev branch
>
>

-- 
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/d/optout.


Credentials dropdown list empty

2014-05-07 Thread Nick Brown
Hi,

I have updated to the latest jenkins and plugins today and now despite 
having credentials in my credentials list when I try to update my jobs to 
use the credentials to access SVN the dropdown list is empty. I have added 
credentials using the add button and via the main credential management. I 
have tried re-installing the plugin but to no avail. Any idea how to fix 
this so that the list populates properly?

Cheers

-- 
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/d/optout.


Re: Jenkins EMail-ext plugin sends groovy code in the Email body

2014-05-07 Thread Slide
You can't define variables in the presend script and use them in the
content. You would need to either use the tokens, if available, to get the
information you want, or switch to using a jelly or groovy template. Check
the wiki for information.
On May 7, 2014 5:02 AM, "Vel Ganesh"  wrote:

> My Extended E-mail Notification 'Default Content' is set as below:
>
> 
> 
> *Execution Results :*
> Status : $BUILD_STATUS
> Tests run : $testCount
> Passed : $testPassed
> Failures : $testFailed
> Skipped : $testSkipped
> Build URL : $BUILD_URL
> 
> 
>
> My Extended E-mail Notification 'Default Pre-send Script' is set as below:
>
> def testResult = build.testResultAction
> def testCount = testResult.getTotalCount()
> def testPassed = testResult.getTotalCount() - testResult.getFailCount() -
> testResult.getSkipCount()
> def testFailed = testResult.getFailCount()
> def testSkipped = testResult.getSkipCount()
>
> The E-Mail get successfully triggered on every build, but the variables
> ($testCount, $testPassed etc.) are not replaced by their values. The text
> '$testPassed' is being displayed in the E-Mail body.
>
> Please let me know, what I am missing here.
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: Jetty or Winstone

2014-05-07 Thread Arnaud Héritier
ok,

thx


On Wed, May 7, 2014 at 11:52 AM, Richard Mortimer wrote:

> On 07/05/2014 10:44, Arnaud Héritier wrote:
>
>> thus the winstone jar is useless ?
>>
>
> No. winstone.jar is the thing that wraps Jetty and provides the same
> features as the old winstone based winstone.jar.
>
> https://github.com/jenkinsci/winstone
>
> Regards
>
> Richard
>
>
>>
>> On Wed, May 7, 2014 at 9:37 AM, James Nord (jnord) > > wrote:
>>
>> Hi Drik,
>>
>> __ __
>>
>>
>> To preserve backwards compatibility of command line arguments a shim
>> was written to look like Winstone that maps arguments onto Jetty
>> specifics.
>>
>>  ...
>
>  --
>> -
>> Arnaud Héritier
>> http://aheritier.net
>> Mail/GTalk: aheritier AT gmail DOT com
>> Twitter/Skype : aheritier
>>
>> --
>> 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/d/optout.
>>
>
> --
> 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/d/optout.
>



-- 
-
Arnaud Héritier
http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

-- 
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/d/optout.


Re: maven plugin - how to obtain the jenkins user name

2014-05-07 Thread Baptiste Mathus
Le 5 mai 2014 23:08, "Mauro Flores"  a écrit :
>>
>> Then you do mean the user who initiated the job; note that this does not
necessarily mean a user who was logged in, as jobs can be started by
'anonymous' (from an SCM trigger for example), or via the API.
>
>
> I'm aware of it.
>
>> The Build object itself should have a record of the user who initiated it
>
>
> I've been searching and testing the content of the MavenProject api
(including getBuild) with no success. No property from Build seems to have
this information.
>
http://maven.apache.org/ref/3.2.1/maven-model/apidocs/org/apache/maven/model/Build.html

As I said in answer to your other thread "getCiManagement()" you're using
the wrong APIs here. What you need to do is writing a *Jenkins* plugin.
What you currently seem to be trying to do is writing a *maven* plugin.

Jenkins and Maven are two absolutely unrelated projects (though often used
together in the CI world).

HTH

>
>
> Em segunda-feira, 5 de maio de 2014 16h38min30s UTC-3, Kevin Fleming
escreveu:
>>
>> Then you do mean the user who initiated the job; note that this does not
necessarily mean a user who was logged in, as jobs can be started by
'anonymous' (from an SCM trigger for example), or via the API.
>>
>> The Build object itself should have a record of the user who initiated
it, there's no need to talk to the Jenkins/Hudson objects to see who is
logged in, and in fact that would not work in a build step anyway because
they don't run in the same environment.
>>
>> - Original Message -
>> From: jenkins...@googlegroups.com
>> To: jenkins...@googlegroups.com
>> Cc: Kevin Fleming (BLOOMBERG/ 731 LEXIN)
>> At: May 5 2014 15:27:54
>>>
>>> I mean the user that is logged on jenkins and started a jenkins job
that in the build step refers a pom.xml that declares this plugin.
>>>
>>>
>>>
>>> Em segunda-feira, 5 de maio de 2014 14h21min39s UTC-3, Kevin Fleming
escreveu:

 What do you mean by 'running'? Does this plugin provide a build step,
a publisher, or something else? If it provides something that is used
during a build, then you want the user who initiated the build.

 - Original Message -
 From: jenkins...@googlegroups.com
 To: jenkins...@googlegroups.com
 Cc: bma...@batmat.net
 At: May 5 2014 12:49:10
>
> I'd like to log who is running this maven plugin.
> I thought I could access the jenkins user from a simple maven plugin
running on jenkins.. I'm afraid I'll have to build (or extend) a jenkins
plugin to achieve that.
>
> Regards. Mauro.
>
> Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus
escreveu:
>>
>> Well, no indeed. Maven is an independent project and generally runs
out of Jenkins.
>>
>> Maybe you should explain a bit more what you are trying to achieve.
>>
>> Cheers
>>
>> Le 1 mai 2014 00:50, "Mauro Flores"  a écrit :
>>>
>>> Maybe I haven't expressed myself correctly.
>>>
>>>
>>> I get a ClassNotFound exception for hudson.model.User.
>>>
>>> Does a maven plugin (not a jenkins plugin) has access to jenkins
classpath ?
>>>
>>> Regards. Mauro Flores.
>>>
>>> Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores
escreveu:

 Thanks. Michael.

 A complementary question.

 Do I have to add the jar of this class "hudson.model.User" to my
maven plugin jar? Or the classpath of jenkins is visible to the execution
of my maven plugin?
 If I have to add, can you help how to define the dependency.
 If I do like below I lot of jars are brought.

 
 org.jenkins-ci.main
 jenkins-core
 1.543
 


 Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke
escreveu:
>
> Use User.current()
>
>
> On 25 April 2014 23:17, Mauro Flores 
wrote:
>>
>> Hello,
>>
>> I'm building a maven plugin.
>> I'd like to access the name of the user logged on jenkins inside
the maven plugin.
>>
>> Regards. Mauro.
>>
>>
>> --
>> 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-use...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>>> --
>>> 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-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
> To un

Re: Error when upgrading Jenkins server (1.560 Ubuntu)

2014-05-07 Thread Marius Gedminas
On Tue, May 06, 2014 at 09:45:30PM -0700, ziv wrote:
> hi Marius
> 
> Thanks for the info. There is no additional info after the change.

This is the additional info (all the lines starting with a '+'):

> --
> Setting up jenkins (1.560) ...
> + [ -r /etc/default/jenkins ]
> + . /etc/default/jenkins
> + NAME=jenkins
> + JAVA=java
> + JAVA_ARGS=
> + PIDFILE=/var/run/jenkins/jenkins.pid
> + JENKINS_USER=jenkins
> + JENKINS_WAR=/usr/share/jenkins/jenkins.war
> + JENKINS_HOME=/var/lib/jenkins
> + RUN_STANDALONE=true
> + JENKINS_LOG=/var/log/jenkins/jenkins.log
> + MAXOPENFILES=8192
> + HTTP_PORT=---
> + AJP_PORT=-1
> + PREFIX=/jenkins
> + JENKINS_ARGS=--webroot=/var/cache/jenkins/war --httpPort=--- 
> --ajp13Port=-1
> + : jenkins
> + : jenkins
> + addgroup --system --quiet jenkins

and it shows that jenkins 1.560 postinst script doesn't check if the
group already exists before trying to add it.

Which is bug https://issues.jenkins-ci.org/browse/JENKINS-22715 that got
fixed in 1.562.

So, when Daniel said

> > > > Wait for 1.562

and you replied

> > > Thanks, Daniel but that did not help.

I got confused and thought you saw some other error with 1.562.  But
you're still attempting to install 1.560.  Why?

Marius Gedminas
-- 
Of course I use Microsoft. Setting up a stable unix network is no challenge ;p


signature.asc
Description: Digital signature


Jenkins EMail-ext plugin sends groovy code in the Email body

2014-05-07 Thread Vel Ganesh
My Extended E-mail Notification 'Default Content' is set as below: 



*Execution Results :*
Status : $BUILD_STATUS
Tests run : $testCount
Passed : $testPassed
Failures : $testFailed
Skipped : $testSkipped
Build URL : $BUILD_URL



My Extended E-mail Notification 'Default Pre-send Script' is set as below: 

def testResult = build.testResultAction 
def testCount = testResult.getTotalCount() 
def testPassed = testResult.getTotalCount() - testResult.getFailCount() - 
testResult.getSkipCount() 
def testFailed = testResult.getFailCount() 
def testSkipped = testResult.getSkipCount() 

The E-Mail get successfully triggered on every build, but the variables 
($testCount, $testPassed etc.) are not replaced by their values. The text 
'$testPassed' is being displayed in the E-Mail body. 

Please let me know, what I am missing here.

-- 
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/d/optout.


Re: Jetty or Winstone

2014-05-07 Thread Richard Mortimer

On 07/05/2014 10:44, Arnaud Héritier wrote:

thus the winstone jar is useless ?


No. winstone.jar is the thing that wraps Jetty and provides the same 
features as the old winstone based winstone.jar.


https://github.com/jenkinsci/winstone

Regards

Richard




On Wed, May 7, 2014 at 9:37 AM, James Nord (jnord) mailto:jn...@cisco.com>> wrote:

Hi Drik,

__ __

To preserve backwards compatibility of command line arguments a shim
was written to look like Winstone that maps arguments onto Jetty
specifics.


...


--
-
Arnaud Héritier
http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

--
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/d/optout.


--
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/d/optout.


Re: Jetty or Winstone

2014-05-07 Thread Arnaud Héritier
thus the winstone jar is useless ?


On Wed, May 7, 2014 at 9:37 AM, James Nord (jnord)  wrote:

>  Hi Drik,
>
>
>
> To preserve backwards compatibility of command line arguments a shim was
> written to look like Winstone that maps arguments onto Jetty specifics.
>
>
>
> /James
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Dirk Heinrichs
> *Sent:* 07 May 2014 08:08
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Jetty or Winstone
>
>
>
> Hi,
>
> I've just enabled access logging on a Jenkins 1.562 test installation,
> using Winstone command line options. I wonder why this can work since
> https://wiki.jenkins-ci.org/display/JENKINS/Jetty says "Jenkins 1.535 and
> above bundles Jetty (rather than Winstone)...".
>
> Looking at jenkins.war, there's still a winstone.jar in there.
>
> Bye...
>
> Dirk
>
> --
>
> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
> *Tel*: +49 2226 159 (Ansage) 1149
> *Email*: d...@recommind.com
> *Skype*: dirk.heinrichs.recommind
> www.recommind.com
>
> --
> 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/d/optout.
>
> --
> 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/d/optout.
>



-- 
-
Arnaud Héritier
http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

-- 
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/d/optout.


Re: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-07 Thread Nigel Magnay
>
>
>>
>> From your reply, I am even more concerned with disproportionally high
>> number of the blocked threads (120) compare to offline slaves (2 at the
>> time), as it sounds like it should be closer to 1:1?
>>
>
> Yes, it sounds like there is a race condition between the post disconnect
> tasks and the reconnect tasks:
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/ssh-slaves-1.6/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java#L1152is
>  blocking until the slave is connected... but the slave cannot connect
> until the disconnect tasks are complete...
>
>
>>
>>
​Do you have 'dead' slaves, and what's your logging configuration like?

I'm tracking down a similar problem, in that our Jenkins instance (which
isn't that large) slows to the state of the UI timing out.

Taking occasional stack-dumps (this is an early guess, could be very wrong)
shows, basically, the UI waiting to get access to
java.util.logging.ConsoleHandler​.

e.g:

- waiting to lock <0x804285c0> (a java.util.logging.ConsoleHandler)
at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:105)
at java.util.logging.Logger.log(Logger.java:565)
at java.util.logging.Logger.doLog(Logger.java:586)
at java.util.logging.Logger.logp(Logger.java:702)
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87)
at 
org.apache.commons.logging.impl.Jdk14Logger.trace(Jdk14Logger.java:239)
at 
org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:372)
... etc etc down to the caller



​Now - the interesting thing is that that trace seems to be going through
apache logging, then JUL logging. But I get nothing on the console, so it's
either throwing an exception because of a misconfiguration, or it's
checking whether we actually wanted this output after acquiring the lock.

Either way, unsurprisingly I don't care about trace logs from apache
beanutils! ;-) I suspect someone may have adjusted our logging trying to
track something down.

Second interesting thing is I notice a lot of the time, the console is
being held by Computer.threadPoolForRemoting. E.g:


 etc etc

at java.util.logging.StreamHandler.publish(StreamHandler.java:196)
- locked <0x804285c0> (a java.util.logging.ConsoleHandler)
at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:105)
at java.util.logging.Logger.log(Logger.java:565)
at java.util.logging.Logger.doLog(Logger.java:586)
at java.util.logging.Logger.log(Logger.java:675)
at 
hudson.remoting.ProxyOutputStream$Chunk$1.run(ProxyOutputStream.java:285)
at hudson.remoting.PipeWriter$1.run(PipeWriter.java:158)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)


​Again, it's one of those pesky warnings that never actually ends up on the
console, but what it's doing is

LOGGER.log(Level.WARNING, "Failed to ack the stream",e);​


​It seems like it's running that a lot (which I suspected might be for
non-working slaves). I think it attempts to generate a stack trace, which
is expensive (and helpfully JUL does all that whilst holding onto the
console lock... >:-S ) - which may be ​why the responsiveness gets crushed.

​Anyway, HTMH and back to digging...
​

-- 
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/d/optout.


Re: Help with Locale Plugin

2014-05-07 Thread Ulli Hafner
This seems to be a bug, please create a new bug report in Jira. Don’t forget to 
add environment and version details.

Am 07.05.2014 um 09:37 schrieb Diego Costantini :

> Eduardo Dias  writes:
> 
>> 
>> 
>> Hi All,
>> I am experiencing in Jenkins a language change even that the plugin is set
> to a defined language and to ignore the browser (Jenkins change from English
> to Portuguese). Beyond that I have included in java options the parameters
> -Duser.language=en -Duser.country=US
>> 
>> Jenkins Release: 1.509.2
>> Locale Plugin: 1.2
>> 
>> Any help will be appreciated.
>> 
>> Regards,Eduardo
>> 
> 
> Hi,
> did you ever get an answer on this?
> I am having the same problem for a long time (but my English is overwritten
> by German).
> It happens randomly (as a way to say that I don't know the non-random
> reason) every few days and I can only restart Jenkins to restore English for
> a while.
> 
> Thanks,
> Diego
> 
> 
> 
> 
> 
> -- 
> 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/d/optout.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Perforce: merge files from a continuous directory to an integration directory...

2014-05-07 Thread Stuart Rowe
Can you describe your branch structure a little more?

How are your integration builds triggered? If you're trying to move changes 
from your development branch to another branch why don't you want to merge? 

Conceptually I would approach this as:

1)  start an integration of your Dev branch up to some changelist to the target 
branch

(look up "p4 integrate")


2) now you have a pending integration changelist with the changes from your Dev 
branch applied to your target branch. (assuming there were no conflicts that 
couldn't be resolved).

Run whatever builds/tests you have set up to verify the changes

3) a) if the builds and tests were successful, submit the changelist

(look up "p4 submit")

b) if anything failed, revert the changelist and make the appropriate fixes in 
your Dev branch

-- 
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/d/optout.


access to web

2014-05-07 Thread Brosh, Yossi
Hi to all,

I need to access a web page with parameter which have to be paste to textarea 
in the page, click  and read the result from the second textarea (as a 
return value).

BR
Yossi

-- 
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/d/optout.


Re: Help with Locale Plugin

2014-05-07 Thread Diego Costantini
Eduardo Dias  writes:

> 
> 
> Hi All,
> I am experiencing in Jenkins a language change even that the plugin is set
to a defined language and to ignore the browser (Jenkins change from English
to Portuguese). Beyond that I have included in java options the parameters
-Duser.language=en -Duser.country=US
> 
> Jenkins Release: 1.509.2
> Locale Plugin: 1.2
> 
> Any help will be appreciated.
> 
> Regards,Eduardo
>

Hi,
did you ever get an answer on this?
I am having the same problem for a long time (but my English is overwritten
by German).
It happens randomly (as a way to say that I don't know the non-random
reason) every few days and I can only restart Jenkins to restore English for
a while.

Thanks,
Diego
 




-- 
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/d/optout.


Re: Jetty or Winstone

2014-05-07 Thread Dirk Heinrichs
Am 07.05.2014 09:37, schrieb James Nord (jnord):

> To preserve backwards compatibility of command line arguments a shim
> was written to look like Winstone that maps arguments onto Jetty
> specifics.

Ah, OK.

Thanks for clarifying this.

Bye...

Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 159 (Ansage) 1149
*Email*: d...@recommind.com 
*Skype*: dirk.heinrichs.recommind
www.recommind.com 



http://www.recommind.com

-- 
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/d/optout.


RE: Jetty or Winstone

2014-05-07 Thread James Nord (jnord)
Hi Drik,

To preserve backwards compatibility of command line arguments a shim was 
written to look like Winstone that maps arguments onto Jetty specifics.

/James

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Dirk Heinrichs
Sent: 07 May 2014 08:08
To: jenkinsci-users@googlegroups.com
Subject: Jetty or Winstone

Hi,

I've just enabled access logging on a Jenkins 1.562 test installation, using 
Winstone command line options. I wonder why this can work since 
https://wiki.jenkins-ci.org/display/JENKINS/Jetty says "Jenkins 1.535 and above 
bundles Jetty (rather than Winstone)...".

Looking at jenkins.war, there's still a winstone.jar in there.

Bye...

Dirk
--
[cid:image001.gif@01CF69CF.89797960]
Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 159 (Ansage) 1149
Email: d...@recommind.com
Skype: dirk.heinrichs.recommind
www.recommind.com
--
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/d/optout.

-- 
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/d/optout.


Re: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-07 Thread Stephen Connolly
Yes, the built in "use a command" launcher... With that you could script in.

Switching to JNLP means you loose the full strength encryption though

On Tuesday, 6 May 2014, Les Mikesell  wrote:

> On Mon, May 5, 2014 at 2:42 PM, Stephen Connolly
> > wrote:
> >
> > It is rather easy to saturate a server with a small number of ssh-slaves
> > based slaves.
> >
> > For example, on an AWS m3.large class machine, 10 ssh-slaves concurrently
> > building jobs as chatty as the mock-load-builder job type is the most you
> > can push.
> >
> > If you use JNLP slaves, you can get close to 60 concurrent builds before
> the
> > system starts falling over.
>
> So is there a straightforward way to use ssh to log in and
> install/update the slave jar and then run it to connect via jnlp
> instead of whatever is so resource-intensive?
>
> --
>   Les Mikesell
> lesmikes...@gmail.com 
>
> --
> 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/d/optout.
>


-- 
Sent from my phone

-- 
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/d/optout.


Jetty or Winstone

2014-05-07 Thread Dirk Heinrichs
Hi,

I've just enabled access logging on a Jenkins 1.562 test installation,
using Winstone command line options. I wonder why this can work since
https://wiki.jenkins-ci.org/display/JENKINS/Jetty says "Jenkins 1.535
and above bundles Jetty (rather than Winstone)...".

Looking at jenkins.war, there's still a winstone.jar in there.

Bye...

Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 159 (Ansage) 1149
*Email*: d...@recommind.com 
*Skype*: dirk.heinrichs.recommind
www.recommind.com 



http://www.recommind.com

-- 
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/d/optout.