Re: How to distinct errors and failures in tests

2021-04-23 Thread Jonathan Rogers

On 4/23/21 5:26 PM, Nick N wrote:

Thank you Jonathan!

Sure, pytest is more advanced framework and provide more features. I will 
definitely rewrite tests to pytest when my boss give me time. Though it doesn't 
provide requested feature.


What prevents you from using pytest with your existing tests? It is designed to 
run unittest-style tests without any changes. Which requested feature do you 
need?

https://docs.pytest.org/en/latest/how-to/unittest.html

--
Jonathan Rogers

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9c081724-4635-702c-b604-5decd39ff188%40gmail.com.


Re: Plugin Installs Failing

2020-02-07 Thread Steve Rogers
For the sake of completeness, this turned out to be blocked at our firewall
based on a list of banned IP addresses.  This still seems strange as I was
able to curl the update files directly from that machine without issue.
The firewall (Palo Alto) seemed to not like the redirects to mirrors and
terminated the connection.  When we bypassed that rule everything worked as
expected, so I just did all my updates and reactivated the rule.

On Tue, Feb 4, 2020 at 8:42 AM Steve Rogers  wrote:

> I changed the configuration to point directly to /home/jenkins (plugin
> installs still fail) and then added the freestyle job as you suggested
> which successfully created and deleted the file at the path suggested, so
> it appears permissions are not the problem.
>
> On Mon, Feb 3, 2020 at 3:32 PM Mark Waite 
> wrote:
>
>> That's surprising.  Could you check the permissions from inside Jenkins
>> by creating a freestyle job that runs on master and attempts to create and
>> delete a file named /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>> ?
>>
>> For me, the directory name '/opt/tomcat/.jenkins/' is surprising. Most
>> Jenkins installations in servers do not use a '.jenkins' directory to store
>> the Jenkins home directory. However, I've never hosted Jenkins under the
>> /opt/tomcat/ directory. That may be the typical directory name for that
>> configuration.
>>
>> On Mon, Feb 3, 2020 at 4:09 PM Steve Rogers 
>> wrote:
>>
>>> Yes, plenty of space and permissions are correct.  I should have added
>>> in the original that I can install manually by downloading the plugin file
>>> directly and then uploading into jenkins.
>>>
>>> On Mon, Feb 3, 2020 at 2:50 PM Mark Waite 
>>> wrote:
>>>
>>>> It may be worth checking the directory permissions to confirm that the
>>>> Jenkins user can still write to that directory.  You may also want to check
>>>> that the disc has available free space and available inodes to allow new
>>>> files to be created.
>>>>
>>>> On Mon, Feb 3, 2020 at 3:42 PM Steve Rogers 
>>>> wrote:
>>>>
>>>>> Any plugin that I try to download results in the following error:
>>>>>
>>>>> java.net.SocketException: Connection reset
>>>>>   at java.net.SocketInputStream.read(SocketInputStream.java:210)
>>>>>   at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>>>>   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>>>>>   at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
>>>>>   at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>>>>>   at sun.net.www.MeteredStream.read(MeteredStream.java:134)
>>>>>   at java.io.FilterInputStream.read(FilterInputStream.java:133)
>>>>>   at 
>>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
>>>>>   at 
>>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
>>>>>   at 
>>>>> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
>>>>>   at 
>>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
>>>>> Caused: java.io.IOException: Failed to load 
>>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>>  to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>>>>>   at 
>>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
>>>>> Caused: java.io.IOException: Failed to download from 
>>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>>  (redirected to: 
>>>>> http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
>>>>>   at 
>>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
>>>>>   at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
>>>>>   at 
>>>>> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
>>>>>   at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
>>>>>   at 
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>>   at java.util.concurrent.FutureTask.run(

Re: Plugin Installs Failing

2020-02-04 Thread Steve Rogers
I changed the configuration to point directly to /home/jenkins (plugin
installs still fail) and then added the freestyle job as you suggested
which successfully created and deleted the file at the path suggested, so
it appears permissions are not the problem.

On Mon, Feb 3, 2020 at 3:32 PM Mark Waite  wrote:

> That's surprising.  Could you check the permissions from inside Jenkins by
> creating a freestyle job that runs on master and attempts to create and
> delete a file named /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp ?
>
> For me, the directory name '/opt/tomcat/.jenkins/' is surprising. Most
> Jenkins installations in servers do not use a '.jenkins' directory to store
> the Jenkins home directory. However, I've never hosted Jenkins under the
> /opt/tomcat/ directory. That may be the typical directory name for that
> configuration.
>
> On Mon, Feb 3, 2020 at 4:09 PM Steve Rogers  wrote:
>
>> Yes, plenty of space and permissions are correct.  I should have added in
>> the original that I can install manually by downloading the plugin file
>> directly and then uploading into jenkins.
>>
>> On Mon, Feb 3, 2020 at 2:50 PM Mark Waite 
>> wrote:
>>
>>> It may be worth checking the directory permissions to confirm that the
>>> Jenkins user can still write to that directory.  You may also want to check
>>> that the disc has available free space and available inodes to allow new
>>> files to be created.
>>>
>>> On Mon, Feb 3, 2020 at 3:42 PM Steve Rogers 
>>> wrote:
>>>
>>>> Any plugin that I try to download results in the following error:
>>>>
>>>> java.net.SocketException: Connection reset
>>>>at java.net.SocketInputStream.read(SocketInputStream.java:210)
>>>>at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>>>at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>>>>at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
>>>>at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>>>>at sun.net.www.MeteredStream.read(MeteredStream.java:134)
>>>>at java.io.FilterInputStream.read(FilterInputStream.java:133)
>>>>at 
>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
>>>>at 
>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
>>>>at 
>>>> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
>>>>at 
>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
>>>> Caused: java.io.IOException: Failed to load 
>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>  to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>>>>at 
>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
>>>> Caused: java.io.IOException: Failed to download from 
>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>  (redirected to: 
>>>> http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
>>>>at 
>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
>>>>at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
>>>>at 
>>>> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
>>>>at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
>>>>at 
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>at 
>>>> hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
>>>>at java.lang.Thread.run(Thread.java:748)
>>>>
>>>>
>>>> i am able to retrieve the resource manually via WGET.  This is a brand new 
>>>> install of jenkins in tomcat on CENTOS7.  Out curiosity I looked at our 
>>>> existing jenkins install and am getting a similar error there.  I have 
>>>> checked and rechecked that the Update Site URL is correct.
>>>>
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
&g

Re: Plugin Installs Failing

2020-02-03 Thread Steve Rogers
That was my first guess too. I tried with both.

On Mon, Feb 3, 2020 at 7:22 PM Jan Monterrubio 
wrote:

>
> Could it be an http vs https problem? We had some of those with maven
> before.
>
> On Mon, Feb 3, 2020 at 16:05 Steve Rogers  wrote:
>
>> I'll give that a try.  I believe /opt/tomcat/.jenkins was the default.  I
>> then just linked that to /home/jenkins.  Our old system where I am getting
>> the same error is a windows install, so it seems more likely something in
>> our network.
>>
>> Thanks for your help.
>>
>> On Mon, Feb 3, 2020 at 3:32 PM Mark Waite 
>> wrote:
>>
>>> That's surprising.  Could you check the permissions from inside Jenkins
>>> by creating a freestyle job that runs on master and attempts to create and
>>> delete a file named /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>>> ?
>>>
>>> For me, the directory name '/opt/tomcat/.jenkins/' is surprising. Most
>>> Jenkins installations in servers do not use a '.jenkins' directory to store
>>> the Jenkins home directory. However, I've never hosted Jenkins under the
>>> /opt/tomcat/ directory. That may be the typical directory name for that
>>> configuration.
>>>
>>> On Mon, Feb 3, 2020 at 4:09 PM Steve Rogers 
>>> wrote:
>>>
>>>> Yes, plenty of space and permissions are correct.  I should have added
>>>> in the original that I can install manually by downloading the plugin file
>>>> directly and then uploading into jenkins.
>>>>
>>>> On Mon, Feb 3, 2020 at 2:50 PM Mark Waite 
>>>> wrote:
>>>>
>>>>> It may be worth checking the directory permissions to confirm that the
>>>>> Jenkins user can still write to that directory.  You may also want to 
>>>>> check
>>>>> that the disc has available free space and available inodes to allow new
>>>>> files to be created.
>>>>>
>>>>> On Mon, Feb 3, 2020 at 3:42 PM Steve Rogers 
>>>>> wrote:
>>>>>
>>>>>> Any plugin that I try to download results in the following error:
>>>>>>
>>>>>> java.net.SocketException: Connection reset
>>>>>>  at java.net.SocketInputStream.read(SocketInputStream.java:210)
>>>>>>  at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>>>>>  at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>>>>>>  at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
>>>>>>  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>>>>>>  at sun.net.www.MeteredStream.read(MeteredStream.java:134)
>>>>>>  at java.io.FilterInputStream.read(FilterInputStream.java:133)
>>>>>>  at 
>>>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
>>>>>>  at 
>>>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
>>>>>>  at 
>>>>>> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
>>>>>>  at 
>>>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
>>>>>> Caused: java.io.IOException: Failed to load 
>>>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>>>  to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>>>>>>  at 
>>>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
>>>>>> Caused: java.io.IOException: Failed to download from 
>>>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>>>  (redirected to: 
>>>>>> http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
>>>>>>  at 
>>>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
>>>>>>  at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
>>>>>>  at 
>>>>>> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
>>>>>>  at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
>>>>>>  at 
>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(E

Re: Plugin Installs Failing

2020-02-03 Thread Steve Rogers
I'll give that a try.  I believe /opt/tomcat/.jenkins was the default.  I
then just linked that to /home/jenkins.  Our old system where I am getting
the same error is a windows install, so it seems more likely something in
our network.

Thanks for your help.

On Mon, Feb 3, 2020 at 3:32 PM Mark Waite  wrote:

> That's surprising.  Could you check the permissions from inside Jenkins by
> creating a freestyle job that runs on master and attempts to create and
> delete a file named /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp ?
>
> For me, the directory name '/opt/tomcat/.jenkins/' is surprising. Most
> Jenkins installations in servers do not use a '.jenkins' directory to store
> the Jenkins home directory. However, I've never hosted Jenkins under the
> /opt/tomcat/ directory. That may be the typical directory name for that
> configuration.
>
> On Mon, Feb 3, 2020 at 4:09 PM Steve Rogers  wrote:
>
>> Yes, plenty of space and permissions are correct.  I should have added in
>> the original that I can install manually by downloading the plugin file
>> directly and then uploading into jenkins.
>>
>> On Mon, Feb 3, 2020 at 2:50 PM Mark Waite 
>> wrote:
>>
>>> It may be worth checking the directory permissions to confirm that the
>>> Jenkins user can still write to that directory.  You may also want to check
>>> that the disc has available free space and available inodes to allow new
>>> files to be created.
>>>
>>> On Mon, Feb 3, 2020 at 3:42 PM Steve Rogers 
>>> wrote:
>>>
>>>> Any plugin that I try to download results in the following error:
>>>>
>>>> java.net.SocketException: Connection reset
>>>>at java.net.SocketInputStream.read(SocketInputStream.java:210)
>>>>at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>>>at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>>>>at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
>>>>at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>>>>at sun.net.www.MeteredStream.read(MeteredStream.java:134)
>>>>at java.io.FilterInputStream.read(FilterInputStream.java:133)
>>>>at 
>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
>>>>at 
>>>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
>>>>at 
>>>> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
>>>>at 
>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
>>>> Caused: java.io.IOException: Failed to load 
>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>  to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>>>>at 
>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
>>>> Caused: java.io.IOException: Failed to download from 
>>>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>>>  (redirected to: 
>>>> http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
>>>>at 
>>>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
>>>>at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
>>>>at 
>>>> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
>>>>at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
>>>>at 
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>at 
>>>> hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
>>>>at java.lang.Thread.run(Thread.java:748)
>>>>
>>>>
>>>> i am able to retrieve the resource manually via WGET.  This is a brand new 
>>>> install of jenkins in tomcat on CENTOS7.  Out curiosity I looked at our 
>>>> existing jenkins install and am getting a similar error there.  I have 
>>>> checked and rechecked that the Update Site URL is correct.
>>>>
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Goog

Re: Plugin Installs Failing

2020-02-03 Thread Steve Rogers
Yes, plenty of space and permissions are correct.  I should have added in
the original that I can install manually by downloading the plugin file
directly and then uploading into jenkins.

On Mon, Feb 3, 2020 at 2:50 PM Mark Waite  wrote:

> It may be worth checking the directory permissions to confirm that the
> Jenkins user can still write to that directory.  You may also want to check
> that the disc has available free space and available inodes to allow new
> files to be created.
>
> On Mon, Feb 3, 2020 at 3:42 PM Steve Rogers  wrote:
>
>> Any plugin that I try to download results in the following error:
>>
>> java.net.SocketException: Connection reset
>>  at java.net.SocketInputStream.read(SocketInputStream.java:210)
>>  at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>  at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>>  at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
>>  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>>  at sun.net.www.MeteredStream.read(MeteredStream.java:134)
>>  at java.io.FilterInputStream.read(FilterInputStream.java:133)
>>  at 
>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
>>  at 
>> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
>>  at 
>> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
>>  at 
>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
>> Caused: java.io.IOException: Failed to load 
>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>  to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>>  at 
>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
>> Caused: java.io.IOException: Failed to download from 
>> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>>  (redirected to: 
>> http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
>>  at 
>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
>>  at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
>>  at 
>> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
>>  at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
>>  at 
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>  at 
>> hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
>>  at java.lang.Thread.run(Thread.java:748)
>>
>>
>> i am able to retrieve the resource manually via WGET.  This is a brand new 
>> install of jenkins in tomcat on CENTOS7.  Out curiosity I looked at our 
>> existing jenkins install and am getting a similar error there.  I have 
>> checked and rechecked that the Update Site URL is correct.
>>
>>
>> Thanks
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/0e51b53c-440a-4b60-a5a1-2c60a406c1ab%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/0e51b53c-440a-4b60-a5a1-2c60a406c1ab%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGeBdtXzCzN7w87sR3MRw7MzvUGy90boBYQj17uv8Mnwg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGeBdtXzCzN7w87sR3MRw7MzvUGy90boBYQj17uv8Mnwg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPWe7DRU-Hz5574ZLvanvKXzs8tUui7z00r-3pWsiPNwV2jbRw%40mail.gmail.com.


Plugin Installs Failing

2020-02-03 Thread Steve Rogers
Any plugin that I try to download results in the following error:

java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.MeteredStream.read(MeteredStream.java:134)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at 
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
at 
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
at 
org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
Caused: java.io.IOException: Failed to load 
http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
 to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
Caused: java.io.IOException: Failed to download from 
http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
 (redirected to: 
http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
at 
hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)


i am able to retrieve the resource manually via WGET.  This is a brand new 
install of jenkins in tomcat on CENTOS7.  Out curiosity I looked at our 
existing jenkins install and am getting a similar error there.  I have checked 
and rechecked that the Update Site URL is correct.


Thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0e51b53c-440a-4b60-a5a1-2c60a406c1ab%40googlegroups.com.


Re: pod inter connections inside k8s cluster

2018-09-18 Thread Jonathan Rogers
On 9/18/18 9:12 AM, Tristan FAURE wrote:
> Hello all my previous message with edit :
> Thank you to both of you for your answers. I was thinking about creating
> services but my db is created then deleted during the build I was not
> sure it was a good practice (and if it is possible) to create
> dynamically (and delete then) a service directly from the jenkinsfile yaml. 
> 
> I will try
> *EDIT : I did not find how to declare the service in the yaml in my
> jenkinsfile (syntax error). All the containers in one pod works but I
> have resource limitations and I would prefer having them separated*

I don't think you've said so, but I assume you're using the Jenkins
plugin called simply "kubernetes", which is documented at:

https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md

AFAICT, that plugin has no built-in way to create Kubernetes service
objects. This is why I recommended using kubectl, which allows to
create, delete and query any Kubernetes object. You will need to make
sure the Docker container image contains a kubectl binary of a version
appropriate for your Kubernetes cluster. You will also need to make sure
that kubectl can authenticate itself. I haven't tried it, but the
"Kubernetes CLI Plugin" may be a good option:

https://wiki.jenkins.io/display/JENKINS/Kubernetes+CLI+Plugin

-- 
Jonathan Rogers

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e19f7df4-8fee-ee18-4d50-591ecb4ee180%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pod inter connections inside k8s cluster

2018-09-17 Thread Jonathan Rogers
On 9/17/18 10:47 PM, Carlos Sanchez wrote:
> You need to use services if you want to expose pods
> If you put everything in one pod, you can use localhost to talk between
> containers

I'm not sure if you meant to respond to me or to Tristan FAURE. I would
also recommend using a service to allow processes in one pod to connect
to a server in another. However, as Tristan implies, defining a service
isn't strictly necessary. For example, to determine the IP address for a
pod if you know its name is "thingy", you could use a command like:

kubectl get pod thingy -o=jsonpath='{.status.podIP}'

-- 
Jonathan Rogers

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0ca2a728-8055-8fca-9825-d8070f153cab%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to FInish Job Success even if it failed

2014-02-26 Thread Jonathan Rogers
Gyanendra Mishra wrote:
> Hello Jonathan,
> 
>  
> 
> Rerun the whole job would not be helpful if there are 2 tests failure
> out of 10. Rerun would unnecessarily run all 10 tests again.

In that case, maybe you should consider putting your conditional test
re-running in a regular build step rather than a post-build action.
Then, you could more easily control whether Jenkins considers the job to
be a failure or success. I doubt you'll find an easy way to tell Jenkins
to consider the job as a success after it's decided it failed.

-- 
Jonathan Rogers

-- 
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: xUnit and ctest results

2014-01-22 Thread Jonathan Rogers
ycollet wrote:
> Thanks. I've done that and it worked.
> But I am a little bit puzzled by the fact the nobody has yet noticed
> the problem ...

What is the problem exactly? Jenkins can't be expected to know which
files should be paid attention to and which should be ignored without
specific rules. Jenkins does have an option to wipe out the workspace
before beginning a job which would also take care of your duplicate test
results problem.

-- 
Jonathan Rogers

-- 
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: Unable to run flashplayer under Jenkins

2014-01-09 Thread Jonathan Rogers
Wim Deblauwe wrote:
> Hi,
>
> "Since OpenGL is involved, I'd look at variables which affect shared
> library loading."
>
> Do you have information on what variables that are? I suppose PATH is,
> but are there others?

The man page for the dynamic loader would be a good place to start. You
also might want to look at the docs for the particular OpenGL
driver/library currently in use. Or, just look at variables which are
different between the interactive shell and Jenkins job environment.

http://man7.org/linux/man-pages/man8/ld.so.8.html>
<http://man7.org/linux/man-pages/man8/ld.so.8.html>

>
> "It's even possible that when you run flashplayer in an interactive
> shell, it's using the OpenGL library of real hardware while displaying
> in a vncserver."
>
> Sounds crazy, but it could explain the behaviour I see indeed.
>
> regards,
>
> Wim
>
>

-- 
Jonathan Rogers

-- 
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: Jenkins on OpenJDK vs Oracle JDK?

2013-12-14 Thread Jonathan Rogers
That's good to know about finding a good MaxPermSize argument. I'm not
that experienced running JVMs so I wasn't aware of that parameter. The
Jenkins wiki doesn't seem to mention it except in referring to Oracle
docs. I don't think I've come across 'OutOfMemoryError: PermGen space'.
Is there a particular way of using Jenkins is more likely to hit that?
Maybe I haven't had that problem because I don't rely on many plugins.
 
Daniel Beck wrote:
> I like my -XX:MaxPermSize java argument to be bigger than what these tools 
> report over long term is the maximum actual permanent generation size. I 
> expect fewer 'OutOfMemoryError: PermGen space' that way.
>
> They might also help finding the responsible plugin if things go wrong so it 
> doesn't happen twice. It's not like ugly problems don't surface from time to 
> time in Jenkins, especially if you're using many plugins. And I cannot 
> arbitrarily restart my instance if things like these occur due to very long 
> running builds that shouldn't be aborted.
>
> I started out with OpenJDK, then had some issue and tried using jmap to 
> investigate, and got the error message. Not a great experience. So unless you 
> can point to something OpenJDK is actually better in, I prefer the JVM with 
> tools that aren't known to be broken.
>
> On 14.12.2013, at 12:41, Jonathan Rogers  wrote:
>
>> What does this have to do with running Jenkins? AFAICT, jmap is a
>> debugging tool. It may be useful for Jenkins developers, but does it
>> have any relevance to running Jenkins ordinarily?
>>
>> Daniel Beck wrote:
>>> On RHEL 6 OpenJDK 7, jmap doesn't (or didn't) work:
>>> http://stackoverflow.com/q/16587460
>>>
>>> So I switched to Oracle, which didn't have this issue. No idea whether it's 
>>> RHEL specific or a general OpenJDK issue though.
>>>
>>> On 12.12.2013, at 01:56, Klaus Schniedergers  
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> do you have experiences and opinions on whether to run Jenkins on
>>>> Oracle's JDK vs OpenJDK?
>>>> This is just for the master - most of our builds are not Java related.
>>>>
>>>> Which JDK flavor are most of the core developers using (assuming that
>>>> that one is better tested and supported)?
>>>>
>>>> https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
>>>> seems to recommend OpenJDK 7, but that could be mostly to it being
>>>> easier to install due to licensing issues?
>>>>
>>>> Thanks!
>>>>
>>>> -- 
>>>> 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.
>>>>
>>
>> -- 
>> Jonathan Rogers
>>
>> -- 
>> 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.
>>


-- 
Jonathan Rogers

-- 
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: Jenkins on OpenJDK vs Oracle JDK?

2013-12-14 Thread Jonathan Rogers
What does this have to do with running Jenkins? AFAICT, jmap is a
debugging tool. It may be useful for Jenkins developers, but does it
have any relevance to running Jenkins ordinarily?

Daniel Beck wrote:
> On RHEL 6 OpenJDK 7, jmap doesn't (or didn't) work:
> http://stackoverflow.com/q/16587460
>
> So I switched to Oracle, which didn't have this issue. No idea whether it's 
> RHEL specific or a general OpenJDK issue though.
>
> On 12.12.2013, at 01:56, Klaus Schniedergers  wrote:
>
>> Hi,
>>
>> do you have experiences and opinions on whether to run Jenkins on
>> Oracle's JDK vs OpenJDK?
>> This is just for the master - most of our builds are not Java related.
>>
>> Which JDK flavor are most of the core developers using (assuming that
>> that one is better tested and supported)?
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
>> seems to recommend OpenJDK 7, but that could be mostly to it being
>> easier to install due to licensing issues?
>>
>> Thanks!
>>
>> -- 
>> 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.
>>


-- 
Jonathan Rogers

-- 
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: How to Install Jenknis API for Python

2013-12-05 Thread Jonathan Rogers
t;http://www.python.org/download/releases/3.2/
> <http://www.python.org/download/releases/3.2/>>> and I'm
> running on
> > > > Windows 7 64 bit.
> > > >
> > > > Thanks for your help,
> > > >
> > > > Josh
> > > >
> > > > On Tuesday, December 3, 2013 3:37:46 PM UTC-8,
> > > joshuam...@gmail.com wrote:
> > > >
> > > > Hello,
> > > >
> > > >   I'm new to Jenkins and use python only to
> run test
> > scripts on
> > > > our custom test executive. We use Python 3.2
> and we wrote
> > > software
> > > > to allow python to communicate with our test
> > executive. I'm
> > > trying
> > > > to figure out how to install the Jenkins API
> for python.
> > > First I
> > > > looked into PIP and came across 2 issues: 1)
> I don't use
> > > CPython
> > > > and 2) It presents me with the same install
> issues as the
> > > Jenkins
> > > > API. Can I merely unzip the API, and drag
> the jenkinsapi
> > > folder to
> > > > a specific directory path? Any help would be
> appreciated.
> > > >
> > > > Joshua Marberry
> > > > Test Software Developer
> > > > RED Digital Cinema
> > > >  
> > > >
> > > > --
> > > > 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/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>
>
> >
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>>
>
> >
> > >
> >
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>
>
> >
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>>>.
>
> >
> > >
> > > > To unsubscribe from this group and all its
> topics, send an
> > email to
> > > > jenkinsci-use...@googlegroups.com .
> > > > For more options, visit
> > https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>
> > <https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>>
> > > <https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>
> > <https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>>>.
> > >
> > >
> > > --
> > > Jonathan Rogers
> > >
> > > --
> > > 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/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>
>
> >
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>>.
>
> >
> > > To unsubscribe from this group and all its topics,
> send an email to
> > > jenkinsci-use...@googlegroups.com .
> > > For more options, visit
> https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>
> > <https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>>.
> >
> >
> > --
> > Jonathan Rogers
> >
> > --
> > 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/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>.
>
> > To unsubscribe from this group and all its topics, send an
> email to
> > jenkinsci-use...@googlegroups.com.
> > For more options, visit
> https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> -- 
> Jonathan Rogers
>
> -- 
> 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/wn0dLXNgWqE/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/groups/opt_out.


-- 
Jonathan Rogers

-- 
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: How to Install Jenknis API for Python

2013-12-05 Thread Jonathan Rogers
m  wrote:
> > > Jonathan,
> > >
> > > thanks for the reply. I do believe I installed the api using
> > > easy_install. Now I'm in the stage trying to verify that
> the API
> > > actually works. The biggest problem here is I'm still very
> green to
> > > Python. The implementation I'm running is 3.2 taken from
> > > http://www.python.org/download/releases/3.2/
> <http://www.python.org/download/releases/3.2/>
> > <http://www.python.org/download/releases/3.2/
> <http://www.python.org/download/releases/3.2/>> and I'm running on
> > > Windows 7 64 bit.
> > >
> > > Thanks for your help,
> > >
> > > Josh
> > >
> > > On Tuesday, December 3, 2013 3:37:46 PM UTC-8,
> > joshuam...@gmail.com wrote:
> > >
> > > Hello,
> > >
> > >   I'm new to Jenkins and use python only to run test
> scripts on
> > > our custom test executive. We use Python 3.2 and we wrote
> > software
> > > to allow python to communicate with our test
> executive. I'm
> > trying
> > > to figure out how to install the Jenkins API for python.
> > First I
> > > looked into PIP and came across 2 issues: 1) I don't use
> > CPython
> > > and 2) It presents me with the same install issues as the
> > Jenkins
> > > API. Can I merely unzip the API, and drag the jenkinsapi
> > folder to
> > > a specific directory path? Any help would be appreciated.
> > >
> > > Joshua Marberry
> > > Test Software Developer
> > > RED Digital Cinema
> > >  
> > >
> > > --
> > > 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/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>
>
> >
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>>.
>
> >
> > > To unsubscribe from this group and all its topics, send an
> email to
> > > jenkinsci-use...@googlegroups.com .
> > > For more options, visit
> https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>
> > <https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>>.
> >
> >
> > --
> > Jonathan Rogers
> >
> > --
> > 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/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>.
>
> > To unsubscribe from this group and all its topics, send an email to
> > jenkinsci-use...@googlegroups.com .
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> -- 
> Jonathan Rogers
>
> -- 
> 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/wn0dLXNgWqE/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/groups/opt_out.


-- 
Jonathan Rogers

-- 
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: How to Install Jenknis API for Python

2013-12-05 Thread Jonathan Rogers
I don't think you've said exactly what your problem is. Were you not
able to install jenkinsapi? Were you unable to connect to Jenkins using
it? I'm not sure using Python 2.7 is out of the question, since one
script can run another in a subprocess, though I don't know how much of
a hassle that would be in your situation.

I have only tried jenkinsapi with Python 2.7 so I don't know to what
extent it will or will not work with 3.2. It looks like there has
already been some work done to make it work with 3.x, so I'd try that
before giving up.

https://github.com/salimfadhley/jenkinsapi/pull/81>

joshuamarbe...@gmail.com wrote:
> Jonathan,
>
>   again thanks for the information. Unfortunately, using python 2.7 is
> out of the question. The scripts have to work with our test executive
> which is compatible with python 3.2. I will have to go down another
> avenue to complete my task unless they have a version of Jenkins api
> that works with python 3.2. Thanks for all the information. It was a
> great help.
>
> Josh
>
> On Thursday, December 5, 2013 11:56:31 AM UTC-8, JonathanRRogers wrote:
>
> OK, you are using CPython then. That is the original and official
> implementation of Python. As you may know, there are two major
> branches
> of CPython. Python 3.x was intended to make deep, incompatible
> changes
> to improve or fix long-known problems or limitations in 2.x.
> Therefore,
> some code that works on 2.7 won't work on 3.2 and vice-versa. Many
> projects still only work on 2.x, apparently including jenkinsapi
> according to the pypi listing.
>
> I'm not sure what your exact problem has been, but you should try
> using
> jenkinsapi with Python 2.7. It is possible to have more than one
> version
> of Python installed so that different programs can use one or the
> other.
> I haven't done so on Windows, but I have multiple versions built from
> source on Unix-like systems. It looks like it should be even
> easier on
> Windows because the official installers install to directories
> including
> version number. The following guide looks like it should be
> helpful. I
> strongly recommend using pip and virtualenv, which HOWTO also covers.
>
> http://docs.python-guide.org/en/latest/starting/install/win/
> <http://docs.python-guide.org/en/latest/starting/install/win/>>
>
> joshuam...@gmail.com  wrote:
> > Jonathan,
> >
> > thanks for the reply. I do believe I installed the api using
> > easy_install. Now I'm in the stage trying to verify that the API
> > actually works. The biggest problem here is I'm still very green to
> > Python. The implementation I'm running is 3.2 taken from
> > http://www.python.org/download/releases/3.2/
> <http://www.python.org/download/releases/3.2/> and I'm running on
> > Windows 7 64 bit.
> >
> > Thanks for your help,
> >
> > Josh
> >
> > On Tuesday, December 3, 2013 3:37:46 PM UTC-8,
> joshuam...@gmail.com wrote:
> >
> > Hello,
> >
> >   I'm new to Jenkins and use python only to run test scripts on
> > our custom test executive. We use Python 3.2 and we wrote
> software
> > to allow python to communicate with our test executive. I'm
> trying
> > to figure out how to install the Jenkins API for python.
> First I
> > looked into PIP and came across 2 issues: 1) I don't use
> CPython
> > and 2) It presents me with the same install issues as the
> Jenkins
> > API. Can I merely unzip the API, and drag the jenkinsapi
> folder to
> > a specific directory path? Any help would be appreciated.
> >
> > Joshua Marberry
> > Test Software Developer
> > RED Digital Cinema
> >  
> >
> > --
> > 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/wn0dLXNgWqE/unsubscribe
> 
> <https://groups.google.com/d/topic/jenkinsci-users/wn0dLXNgWqE/unsubscribe>.
>
> > To unsubscribe from this group and all its topics, send an email to
> > jenkinsci-use...@googlegroups.com .
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out

Re: How to Install Jenknis API for Python

2013-12-05 Thread Jonathan Rogers
OK, you are using CPython then. That is the original and official
implementation of Python. As you may know, there are two major branches
of CPython. Python 3.x was intended to make deep, incompatible changes
to improve or fix long-known problems or limitations in 2.x. Therefore,
some code that works on 2.7 won't work on 3.2 and vice-versa. Many
projects still only work on 2.x, apparently including jenkinsapi
according to the pypi listing.

I'm not sure what your exact problem has been, but you should try using
jenkinsapi with Python 2.7. It is possible to have more than one version
of Python installed so that different programs can use one or the other.
I haven't done so on Windows, but I have multiple versions built from
source on Unix-like systems. It looks like it should be even easier on
Windows because the official installers install to directories including
version number. The following guide looks like it should be helpful. I
strongly recommend using pip and virtualenv, which HOWTO also covers.

http://docs.python-guide.org/en/latest/starting/install/win/>

joshuamarbe...@gmail.com wrote:
> Jonathan,
>
> thanks for the reply. I do believe I installed the api using
> easy_install. Now I'm in the stage trying to verify that the API
> actually works. The biggest problem here is I'm still very green to
> Python. The implementation I'm running is 3.2 taken from
> http://www.python.org/download/releases/3.2/ and I'm running on
> Windows 7 64 bit.
>
> Thanks for your help,
>
> Josh
>
> On Tuesday, December 3, 2013 3:37:46 PM UTC-8, joshuam...@gmail.com wrote:
>
> Hello,
>
>   I'm new to Jenkins and use python only to run test scripts on
> our custom test executive. We use Python 3.2 and we wrote software
> to allow python to communicate with our test executive. I'm trying
> to figure out how to install the Jenkins API for python. First I
> looked into PIP and came across 2 issues: 1) I don't use CPython
> and 2) It presents me with the same install issues as the Jenkins
> API. Can I merely unzip the API, and drag the jenkinsapi folder to
> a specific directory path? Any help would be appreciated.
>
> Joshua Marberry
> Test Software Developer
> RED Digital Cinema
>  
>
> -- 
> 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/wn0dLXNgWqE/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/groups/opt_out.


-- 
Jonathan Rogers

-- 
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: Running daemon processes

2013-12-03 Thread Jonathan Rogers
andrea crotti wrote:
>
> Argh true I missed that, I expected that jenkins would have quoted the
> spaces since it lets me enter them, is that a known issue than?
> I'll try without tomorrow, thanks
>

First, is the script in question in an "Execute shell" block? Second, is
your script doing anything with the Jenkins project (job) name? Third,
in what context would you expect the name of the job to be quoted?
Without knowing the context, it's impossible to answer the question
usefully since many factors can affect how spaces are handled, escaped
or quoted, especially when a shell is involved.

-- 
Jonathan Rogers

-- 
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: Running daemon processes

2013-12-03 Thread Jonathan Rogers
andrea crotti wrote:
> So I was trying to do something like this, and I created this bash
> script which locally works perfectly fine.
>
> However it doesn't seem to work at all with the error pasted below.
> Is Jenkins able to run any bash script?
> It seems like it should be I'm not sure why it gives this error though..

In "Execute shell" blocks, Jenkins just tries to use the system shell by
default AFAIK. On Unix-like systems, that should be /bin/sh, which could
be Bash or something else, depending on the system. You should try to
make the scripts you put in "Execute shell" blocks standard Bourne shell
and/or test them with /bin/sh. Alternatively, you can set a specific
shell executable in the global Jenkins config.

>
> #!/bin/bash
> SPOTLIGHT_PID="not"
> API_PID="not"
>
> function create_ve {
> if [ ! -d ve ]
> then virtualenv ve
> fi
> }
>
> function start_spotlight {
> cd wazoku-spotlight/spotlight
> create_ve
> ve/bin/pip install -r test-requirements.txt
> ve/bin/python manage.py runserver &
> SPOTLIGHT_PID=$!
> cd -
> }
>
> start_spotlight
>
> cd wazoku-spotlight/spotlight
> ve/bin/python manage.py test tests/integration --with-xunit
>
> kill $SPOTLIGHT_PID

Is the above script what you put in an "Execute shell" block? Don't put
a shebang in those, though it shouldn't matter much.

>
> ERROR:
>
> Pip.done.
> ./run-tests-jenkins.sh: ve/bin/pip: "/var/lib/jenkins/jobs/spotlight:
> bad interpreter: No such file or directory
> /var/lib/jenkins/jobs/spotlight integration and selenium/workspace
> Traceback (most recent call last):
>   File "run.py", line 1, in 
> from bottle import run
> ImportError: No module named bottle
> New python executable in ve/bin/python
> Installing
> Setuptools......done.
> Installing

It's pretty clear that something couldn't find
"/var/lib/jenkins/jobs/spotlight". Figure out what was looking for that
file and why it couldn't find it.

-- 
Jonathan Rogers

-- 
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: Plugin require for BTS

2013-09-09 Thread Jonathan Rogers
Mark Waite wrote:
> What if there were a plugin that allowed the classification of test
> failures, and then allowed filtering and reviewing history of test
> failures by type of failure, frequency of failure, etc.?  That might
> then support the human driven failure analysis with gathered data.
>
> I know we can claim a build break and a test failure, but I don't know
> of a way to assign a "reason" for a test break to a specific test failure.
>
Indeed, that sounds like a good idea. I could definitely use a plugin
like that.

-- 
Jonathan Rogers

-- 
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: Browser not opening in Other machine

2013-09-04 Thread Jonathan Rogers
pradeep kattekola wrote:
>  ok. below are the steps i followed -
>
> Created one job in jenkins to run the webdriver code which was running
> proper in main machine ( in which jenkins is installed).
> i called the jenkins in other machine with main machine ip
> address:8080. when i am executing the same job from remote machine ,
> the browser gets opening on main machine. I used Internet Explorer in
> my current scenario.

What do you mean by "called the jenkins in other machine?" Are you
talking about a Jenkins slave? Are you using WebDriver to control
Jenkins itself? I have Python tests which use WebDriver. A Jenkins job
runs the Python tests via a shell script but Jenkins has no direct
knowledge of WebDriver. If you're trying to run WebDriver tests on a
different host from that running the browser, that is a somewhat more
advanced topic which is outside Jenkins's scope. You may get better help
from the selenium project forums or mailing lists.

-- 
Jonathan Rogers

-- 
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: rsync instead of archiving?

2013-08-29 Thread Jonathan Rogers
Avihay Eyal wrote:
> Cause I have a machine that's used for build purpose, and a machine
> that's used for regression/unittest.
>
> So the output files that trace the code coverage, are actually produced on
> machine that run the regression/unittest, but these coverage files
> (.gcda files) and must be joined with the repository (specificly the
> .o and .gcno)
> that was used to create the exe, and that repository resides in the
> build machine...
>
> I could build and run the regression/unit tests on the same machine,
> but we have a dedicated machine used for build, and other machines
> used for
> testing.

If you have the unfortunate situation that you must copy such a large
amount of data from one machine to another, rsync is certainly a good
option. It sounds like you have fairly statically defined roles for
machines, so I don't see the problem with using their host names.

>
> On Thursday, August 29, 2013 10:23:50 PM UTC+3, JonathanRRogers wrote:
>
> On Wednesday, August 28, 2013 5:10:38 PM UTC-4, Avihay Eyal wrote:
>
> Hi, I have a job that builds a debug version, and a job that
> runs regression tests and publish code coverage. The code
> coverage (gcovr) needs *access to the code base* itself,
> which is close to *3 GB.* I've tried *archiving* the workspace
> in the build job, and using that archive in the regression
> job, but the archiving *takes forever*...
>
> So I want to use *rsync* from the build machine to the
> regression machine, is that the *best practice for the
> situation I described? *To me it seems that the drawback is
> that I'm using the actual
> machine names, when doing the rsync, therefor eliminating the
> abstraction of jobs and nodes...
>
>
> So you need a job to have access to the output of a previous job?
> Why not just have the gcovr job run on the same machine with the
> same workspace?
>
> -- 
> 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/D_UDw_7LFIk/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/groups/opt_out.


-- 
Jonathan Rogers

-- 
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: When PHPUnit fails, last test result = no fail

2013-08-21 Thread Jonathan Rogers
Mikael Peigney wrote:
> Hi,
>
> If I understand correctly, Jenkins doesn't publish my XUnit results
> because my build fails?
> My goal is to have the build to be marked as failed, while still
> having some of my post-build script run (in fact, all excepting one).

I don't think you provided enough information to tell. You need to
configure the Jenkins job to consume the XUnit output explicitly.

>
> If I change the failonerror in my Ant task, will it continue to build,
> while still marking the build as failed, because there was XUnit errors?
>
I haven't messed with Ant in ages so I can't tell you anything specific
about it. If you are using a Jenkins shell step, it cares about exit
status. I assume ant will provide an appropriate exit status.

-- 
Jonathan Rogers

-- 
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: "curl: (7) couldn't connect to host error" in Execute shell build step

2013-07-16 Thread Jonathan Rogers
Ling-Yi Kung wrote:
> On Tuesday, July 16, 2013 9:19:26 AM UTC-7, JonathanRRogers wrote:
>
> So you were able to run "
>
> curl 
> https://raw.github.com/appium/appium/master/sample-code/examples/node/simplest.js
>  
> <https://raw.github.com/appium/appium/master/sample-code/examples/node/simplest.js>"
>  interactively on the same host?
>
>
> Yes. I'm using my local machine as a slave, and everything in my
> script works when I run it myself.
>

The environment will be different. The first thing I'd suspect is the
need for a proxy to connect to GitHub. Are there environment variables
like http_proxy or HTTP_PROXY when you run commands interactively? Is
the host behind some corporate firewall that prevents direct HTTPS
connections?

-- 
Jonathan Rogers

-- 
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: Jenkins with a DB?

2013-07-10 Thread Jonathan Rogers
Yes, I'm quite willing to share the simple script I wrote. Keep in mind
that it is not a general solution, but addressed my needs in a very
specific Jenkins setup. The Python script relies on the psycopg2 library
to talk to Postgres and the jenkinsapi package to talk to Jenkins.

Put all attached files in the same directory. First, you will need to
create your Postgres database. The SQL statements in jenkins_schema.sql
should do this for you if you run it via psql. You will certainly want
to modify TEST_JOB_RE to match the job names you're interested in or
simply remove the job name check to get all of them.

You will need to modify the Postgres username and password hard coded in
update_build_db.py and the Jenkins URL and credentials in jenkins.ini.
Then, you should be able to run update_build_db.py as a script to update
your Postgres db with job and build information from Jenkins.


Ballantyne, Bob wrote:
> This sounds remarkably similar to a task on my current 'to-do' list.
> Even the PostgresQL db and the analysts use case.  I had intended
> using Groovy. 
>
> Any chance if posting this somewhere on the Jenkins plugin site, or on
> Scriptler? I'm sure there are probably many others who would be VERY
> interested. 
>
>
> On Jul 10, 2013, at 5:29 PM, "JonathanRRogers"
> mailto:jonathanrrog...@gmail.com>> wrote:
>
>>
>>
>> On Friday, June 28, 2013 4:14:46 PM UTC-4, Michael Barbine wrote:
>>
>> Hello!
>>
>> I'm looking for some input on a proven way to put all of the data
>> contained in the Jenkins XML or API into a RDBMS. Doesn't matter
>> which one... I can move it around later.
>>
>>
>> What do you mean by "all the data"? More importantly, what is the
>> ultimate goal? I wrote a script which extracts job and build
>> information via the Jenkins API and inserts/updates a PostgreSQL
>> database so I could analyze it more easily. Is that similar to what
>> you're trying to do?
>> -- 
>> 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
>> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> -- 
> 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/wHxZ9dm-JE4/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/groups/opt_out.
>  
>  


-- 
Jonathan Rogers

-- 
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.


--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: 
--

CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;


--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';


SET search_path = public, pg_catalog;

SET default_tablespace = '';

SET default_with_oids = false;

--
-- Name: build; Type: TABLE; Schema: public; Owner: social; Tablespace: 
--

CREATE TABLE build (
job text NOT NULL,
id bigint NOT NULL,
duration interval NOT NULL,
began timestamp with time zone NOT NULL,
status text NOT NULL,
node_name text NOT NULL
);


ALTER TABLE public.build OWNER TO social;

--
-- Name: job; Type: TABLE; Schema: public; Owner: social; Tablespace: 
--

CREATE TABLE job (
job text NOT NULL,
branch text NOT NULL
);


ALTER TABLE public.job OWNER TO social;

--
-- Name: test; Type: TABLE; Schema: public; Owner: social; Tablespace: 
--

CREATE TABLE test (
id bigint NOT NULL,
job text NOT NULL,
build_id bigint,
classname text NOT NULL,
name text NOT NULL,
duration interval NOT NULL,
errordetails text,
errorstacktrace text,
status text NOT NULL,
stdout text,
stderr text
);


ALTER TABLE public.test OWNER TO social;

--
-- Name: test_id_seq; Type: SEQUENCE; Schema: public; Owner: social
--

CREATE SEQUENCE test_id_

Re: Is Jenkins the right tool for hundreds of repositories

2013-05-10 Thread Jonathan Rogers
Chris Marks wrote:
>
> I haven't used Jenkins in a large Git environment, but perhaps those
> who have problems with the performance could file bugs related to
> their experiences in specific situations if they haven't already?  It
> would benefit the community to have a bullet-proof Git plugin that
> performed well at scale.
>

The fact that this hasn't gotten any attention in three years is what
convinced me to dump the git plugin:
https://issues.jenkins-ci.org/browse/JENKINS-5724
<https://issues.jenkins-ci.org/browse/JENKINS-5724>>

-- 
Jonathan Rogers

-- 
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: Is Jenkins the right tool for hundreds of repositories

2013-05-10 Thread Jonathan Rogers
William Soula wrote:
> Look into the github trigger where pushes to a repo causes the webhook to hit 
> the url for the job and it will check for changes and build.  Thus no polling 
> is involved.
>
> http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
>
Unfortunately, the configuration described there does still poll. The
URL trigger invokes the polling rather than a timer. To get decent
performance, I use a URL trigger with a branch name parameter and all
git operations are handled by custom scripts rather than anything within
Jenkins itself.

-- 
Jonathan Rogers

-- 
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: Is Jenkins the right tool for hundreds of repositories

2013-05-10 Thread Jonathan Rogers
Les Mikesell wrote:
> On Fri, May 10, 2013 at 12:38 PM, JonathanRRogers
>  wrote:
>> Jenkins' git plugin performs poorly with hundreds of branches in a single
>> repository. I haven't tried it with hundreds of repositories, but I wouldn't
>> be surprised if that also performed poorly. I now avoid the git plugin
>> entirely and use git commands directly.
> Do you know if this is specific to git or is it just the nature of
> polling for a whole bunch of different jobs on the same time cycle?
> Or perhaps made worse by polling the same repository with many jobs at
> the same time?

The problem is with Jenkins' git plugin. When I configured it to poll a
repository without limiting branches (the default configuration), one
Jenkins thread would use 100% of a CPU for many minutes just to figure
out what jobs to trigger. No git operations take anywhere close to that
when using the native commands.

-- 
Jonathan Rogers

-- 
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: can't start slaves anymore, ssh auth failing

2013-05-02 Thread Jonathan Rogers
Stephen Connolly wrote:
>
>
> On Thursday, 2 May 2013, JonathanRRogers wrote:
>
> On Thursday, May 2, 2013 2:50:44 PM UTC-4, LesMikesell wrote:
>
> On Thu, May 2, 2013 at 1:26 PM, Kevin Fleming (BLOOMBERG/ 731
> LEXIN)
>  wrote:
> > This change would not have been in the Jenkins changelog,
> because it wasn't
> > technically a Jenkins change. It's a change in the SSH
> Slaves plugin.
>
> Shouldn't something note when the things distributed with the
> core
> package change in ways that affect behavior?   Or are all users
> supposed to know the internal workflow across all the plugins?
>
>
> I'm glad I came across this thread while I'm still on version
> 0.22. I'll make sure not to upgrade to a version which breaks
> things so fundamentally.
>
>
> 0.23 and 0.24 have a race condition where there is a 10-15% chance
> that you will loose your credentials after rebooting the first time
> post installation.
>
> 0.25 should be fine.
>

Are you saying that upgrading from 0.22 to 0.25 is transparent?
-- Jonathan Rogers

-- 
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: Store build meta data in a db

2013-04-12 Thread Jonathan Rogers
Slide wrote:
> You could possibly do something with [1]
>
> slide
>
> 1 - https://wiki.jenkins-ci.org/display/JENKINS/Database+Plugin
>

I'm sure I could do something with it. I probably would have done
something with it if I wanted to write a bunch of Java. As it turned
out, I was able to accomplish what I needed with an 80 line script using
tools I was already familiar with. The REST APIs are quite well designed.

-- 
Jonathan Rogers

-- 
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: Store build meta data in a db

2013-04-12 Thread Jonathan Rogers
H3llGhost wrote:
> Am 12.04.2013 22:23, schrieb JonathanRRogers:
>> On Friday, April 12, 2013 12:02:48 PM UTC-4, Ipoo Doh wrote:
>>
>> Thanks, we do have a valid reason for storing data in the db, we
>> will create a build step with groovy plugin to specifically put
>> some the data into the db
>>
>>
>> Another approach is to use an external program to extract build data
>> using the REST API. Specifically, I have a nightly job that runs a
>> Python script which queries Jenkins using JenkinsAPI and inserts the
>> results in a PostgreSQL database.
> It is an option, but really nice it isn't is it?

It works just fine for me. I can't stand writing Groovy scripts in
Jenkins where debugging is atrocious. You should do whatever works for you.

-- 
Jonathan Rogers

-- 
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: How to connect to a Linux slave?

2013-03-20 Thread Jonathan Rogers
David Aldrich wrote:
> Hi Les,
>
> Yes I have and I have entered the correct username and password.  But I still 
> get:
>
> [03/20/13 16:56:01] [SSH] Opening SSH connection to tmds404:22.
> java.io.IOException: There was a problem while connecting to tmds404:22
>   at com.trilead.ssh2.Connection.connect(Connection.java:793)
>   at com.trilead.ssh2.Connection.connect(Connection.java:565)
>
> The only differences between this slave and the others (apart from it running 
> Ubuntu) is that it uses Windows authentication not Linux authentication.
>
What do you mean that an Ubuntu slave uses Windows authentication? As I
said before, you need to try logging into the slave directly via ssh.
When that works, try it with Jenkins.

-- 
Jonathan Rogers

-- 
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: console run as jenkins i can mkdir, but when i run mkdir in build task, i get permission denied

2013-03-09 Thread Jonathan Rogers
KimSia Sim wrote:
> Thank you for your advice Jonathan!
>
> I have solved the problem by restarting the Jenkins service.
>
> I had to run the following command in my console.
>
> sudo service jenkins restart
>
> This restart works better than the web gui restart sequence.
>
> For reasons unknown to me.

Group membership is only set at the beginning of a session or by using
an explicit command like newgrp. If you edited /etc/group while Jenkins
was running, then told Jenkins to restart itself, it would not have
picked up the changes. An initscript invoked by the service command does
start the service in a new session.

>
> On Saturday, March 9, 2013 2:35:17 PM UTC+8, JonathanRRogers wrote:
>
> KimSia Sim wrote:
> > Under build step execute shell command, I only have the following
> > echo "running whoami" & whoami
> > echo "running groups" & groups
> > echo $PWD
> > mkdir /var/virtual/stage.xxx.com/test1 <http://stage.xxx.com/test1>
> >
> > These are my results.
> > + whoami
> > jenkins
> > + echo running whoami
> > running whoami
> > + groups
> > nogroup
> > + echo running groups
> > running groups
> > + echo /var/lib/jenkins/workspace/LTE develop
> > /var/lib/jenkins/workspace/LTE develop
> > + mkdir /var/virtual/stage.xxx.com/test1
> <http://stage.xxx.com/test1>
> > mkdir: cannot create directory `/var/virtual/stage.xxx.com/test1
> <http://stage.xxx.com/test1>': Permission denied
> > Build step 'Execute shell' marked build as failure
> > Finished: FAILURE
> > What should I do next?
>
> As you can see from your above output, the Jenkins process is
> running as
> a member of the "nogroup" group, not "www-data". This probably means
> that user "jenkins" is not listed as member of "www-data" in
> /etc/group.
> Alternatively, the script which starts Jenkins or Jenkins itself
> could
> be explicitly changing the group membership. You need to determine
> why
> Jenkins is not running with the group membership you expect. Keep in
> mind that group membership is determined at process start time so you
> have to restart Jenkins after changing /etc/group to see any effects.
>
> BTW, in a shell script the "&" character means to run the preceeding
> command in the background, which probably not what you intended as
> the
> reason that the output order is odd. Use ';' to separate two commands
> but execute them sequentially.
>
> >
> > On Saturday, March 9, 2013 12:46:39 AM UTC+8, JonathanRRogers
> wrote:
> >
> >
> >
> > On Friday, March 8, 2013 4:51:04 AM UTC-5, KimSia Sim wrote:
> >
> > I have this command
> >
> > mkdir /var/virtual/folder
> >
> > I can execute this when I ssh into my server as `jenkins`
> >
> > /var/virtual belongs to www-data, but not an issue
> because I
> > made /var/virtual 775 and `jenkins` is a member of
> `www-data`
> > group
> >
> >
> > However, when I run the exact same command in my web
> interface
> > Jenkins system as a build task, I get a permission denied.
> >
> >  It might be helpful to put commands in the script run from
> > Jenkins to print as much about the environment as possible,
> > including logged in account (whoami) and current group
> membership
> > (groups) and current working directory. Prefix the command
> which
> > fails with "echo" to make sure it is exactly the same as
> what you
> > type interactively.
> >
> > --
> > 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/GXSmF6RfluM/unsubscribe?hl=en
> 
> <https://groups.google.com/d/topic/jenkinsci-users/GXSmF6RfluM/unsubscribe?hl=en>.
>
> > To unsubscribe from this group and all its topics, send an email to
> > jenkinsci-use...@googlegroups.com .
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> 

Re: console run as jenkins i can mkdir, but when i run mkdir in build task, i get permission denied

2013-03-08 Thread Jonathan Rogers
KimSia Sim wrote:
> Under build step execute shell command, I only have the following
> echo "running whoami" & whoami
> echo "running groups" & groups
> echo $PWD
> mkdir /var/virtual/stage.xxx.com/test1
>
> These are my results.
> + whoami
> jenkins
> + echo running whoami
> running whoami
> + groups
> nogroup
> + echo running groups
> running groups
> + echo /var/lib/jenkins/workspace/LTE develop
> /var/lib/jenkins/workspace/LTE develop
> + mkdir /var/virtual/stage.xxx.com/test1
> mkdir: cannot create directory `/var/virtual/stage.xxx.com/test1': Permission 
> denied
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
> What should I do next?

As you can see from your above output, the Jenkins process is running as
a member of the "nogroup" group, not "www-data". This probably means
that user "jenkins" is not listed as member of "www-data" in /etc/group.
Alternatively, the script which starts Jenkins or Jenkins itself could
be explicitly changing the group membership. You need to determine why
Jenkins is not running with the group membership you expect. Keep in
mind that group membership is determined at process start time so you
have to restart Jenkins after changing /etc/group to see any effects.

BTW, in a shell script the "&" character means to run the preceeding
command in the background, which probably not what you intended as the
reason that the output order is odd. Use ';' to separate two commands
but execute them sequentially.

>
> On Saturday, March 9, 2013 12:46:39 AM UTC+8, JonathanRRogers wrote:
>
>
>
> On Friday, March 8, 2013 4:51:04 AM UTC-5, KimSia Sim wrote:
>
> I have this command
>
> mkdir /var/virtual/folder
>
> I can execute this when I ssh into my server as `jenkins`
>
> /var/virtual belongs to www-data, but not an issue because I
> made /var/virtual 775 and `jenkins` is a member of `www-data`
> group
>
>
> However, when I run the exact same command in my web interface
> Jenkins system as a build task, I get a permission denied.
>
>  It might be helpful to put commands in the script run from
> Jenkins to print as much about the environment as possible,
> including logged in account (whoami) and current group membership
> (groups) and current working directory. Prefix the command which
> fails with "echo" to make sure it is exactly the same as what you
> type interactively.
>
> -- 
> 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/GXSmF6RfluM/unsubscribe?hl=en.
> 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/groups/opt_out.
>  
>  


-- 
Jonathan Rogers

-- 
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.




Dynamic Axis plugin sometimes inserts "default"

2013-02-13 Thread Jonathan Rogers
I've been using the Dynamic Axis plugin for several weeks to run a set
of test suites the names of which are set in the source code repository.
Normally this works great but once in a while, the word "default" is
inserted into the list of test suite names. Of course, this causes
failures since there is no test suite by that name.

I understand that "default" is the value Dynamic Axis will use when no
variable has been defined for the axis. However, there clearly is a
value set and "default" is added to it, which is definitely the wrong
behavior. Since this only happens in a small minority of job executions,
perhaps there is a race condition.
-- 
Jonathan Ross Rogers

-- 
Jonathan Rogers

-- 
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: Converting paths with spaces

2013-01-22 Thread Jonathan Rogers
Benjamin Lau wrote:
> command.com changed to cmd.exe at some point in the last decade or
> two... maybe that's an NT and later thing...
>

Actually, they coexisted for a long time. NT did add cmd.exe as a native
program but continued to include command.com for backward compatibility.
Not surprisingly given the names, command.com is a 16-bit real mode DOS
program and cmd.exe is a protected mode Win32 one. They understand a
similar language, though cmd.exe extended it some. It seems that in
recent years, 64-bit versions of Windows have finally dropped command.com.

-- 
Jonathan Rogers



Re: Converting paths with spaces

2013-01-22 Thread Jonathan Rogers
Slide wrote:
> Is [1] what you are looking for?
>
> slide
>
> 1
> - 
> http://www.andypemberton.com/engineering/windows-short-file-name-shortpath-in-ant-task/
>
I should have known better than to reply to a question about Windows
brain damage.

-- 
Jonathan Rogers



Job DSL scripts with configure blocks don't work

2013-01-12 Thread Jonathan Rogers
Although Job DSL scripts work as long as there are no configure blocks,
I haven't been able to get a single configure block to work, including
verbatim examples from the docs. In particular, I've tried the Git
example from the "Real World Examples" at
https://github.com/jenkinsci/job-dsl-plugin/wiki/Real-World-Examples>

-
job {
name 'GitJobXmlConfigured'
scm {
git('git://github.com/JavaPosseRoundup/job-dsl-plugin') { node ->
// These names come straight from the xml, 
node / authorOrCommitter << 'true'
node / gitConfigName << 'Justin Ryan'
node / gitConfigEmail << 'jus...@halfempty.org'
}
}
}
-

When I execute the job with this script, it results in an error like this:

FATAL: No signature of method: git.git() is applicable for argument
types: (git$_run_closure1_closure2_closure3) values:
[git$_run_closure1_closure2_closure3@a799c1]
Possible solutions: wait(), wait(long), is(java.lang.Object),
with(groovy.lang.Closure), run(), getJm()
-- 
Jonathan Rogers


Re: Change file encoding from ANSI to UTF-8 in Jenkins

2013-01-10 Thread Jonathan Rogers
I'm pretty sure it is determined at JVM startup time from the system locale.
https://help.ubuntu.com/community/Locale>
<https://help.ubuntu.com/community/Locale>

Tj Kim wrote:
> me too. please help us..
>
> 2012년 10월 31일 수요일 오후 5시 38분 27초 UTC+9, sujan54004 님의 말:
>
> Hello Everyone,
>
> I am trying to change the file.encoding from ANSI to UTF-8 in
> Jenkins. It always shows ANSI_X3.4-1968 in the "system properties".
> I've tried setting it from the code level but it's not working for
> me. I am using Ubuntu 12.04 to host the Jenkins.
>
> Any help would be very much appreciated.
>
> Thanks
>
-- Jonathan Rogers


Re: Job Generator Plugin jobs get stuck when deleting generated jobs

2013-01-09 Thread Jonathan Rogers
syl20bnr wrote:
> I just released the 1.08 version which contains a fix for this bug :)
>

Thanks for the quick fix. I just confirmed that I can delete an entire
hierarchy with my configuration.

-- 
Jonathan Rogers



Re: Job Generator Plugin jobs get stuck when deleting generated jobs

2013-01-08 Thread Jonathan Rogers
I do need more than one executor for the generated jobs as opposed to
the generator jobs but I already work around the problem by simply not
using the delete mode.

syl20bnr wrote:
> Thank you for the details. I can reproduce it.
> There is some sort of deadlock if your master is configured with more
> than 1 executor.
> The deletion should be done one by one or I have to find a way another
> way to handle it.
>
> For now, if it is possible for you, you can work around the bug by
> setting only 1 executor on your master.
>
> Le lundi 7 janvier 2013 19:17:30 UTC-5, JonathanRRogers a écrit :
>
> I have a top-level generator project "trigger_builds_generator"
> with one
> generator parameter "MANUAL_GIT_BRANCH" which triggers two
> parameterized
> build entries for a second level project "build_generator" with two
> different values for a second generator parameter
> "VIRTUALENV_NAME". The
> "build_generator" project in turn triggers  two different projects to
> run tests. Running the hierarchy generates seven projects overall. If
> you need it, I can probably provide the configuration itself.
>
> After running the hierarchy in the default create mode, I see the
> seven
> new projects. Then, I run the hierarchy exactly the same way except
> checking the "Delete jobs" and confirmation check boxes. The
> top-level
> "trigger_builds_generator" job succeeds immediately, removing the
> project it had created. However, three jobs remain executing, one for
> each lower level generator project. They cannot be killed by any
> means
> I'm aware of.
>
> Once I restart Jenkins, the invincible jobs are gone of course and
> some
> of the projects they were intended to delete have gone away. As I
> said,
> I only see this problem when using the delete mode. Creating brand
> new
> or replacing existing jobs works fine. It looks like there's some
> locking problem that only exhibits in delete mode.
>
> syl20bnr wrote:
> > Can you give me more details on your hierarchy so I can try to
> > reproduce this bug ?
> > Thank you.
> >
> > Le jeudi 3 janvier 2013 23:02:15 UTC-5, JonathanRRogers a écrit :
> >
> > Whenever I run a job generator job to delete an existing
> hierarchy
> > of generated jobs, the generator jobs themselves get stuck.
> They
> > never complete and if I attempt to kill them manually, the
> entire
> > Jenkins web interface gets stuck and I can never load another
>     > page. The only way to get rid of the stuck jobs I've found
> so far
> > is to restart Jenkins. Generating new jobs doesn't seem to have
> > the same problem, even if replacing existing ones.
> >
>
>
> -- 
> Jonathan Rogers
>


-- 
Jonathan Rogers



Re: Job Generator Plugin jobs get stuck when deleting generated jobs

2013-01-07 Thread Jonathan Rogers
I have a top-level generator project "trigger_builds_generator" with one
generator parameter "MANUAL_GIT_BRANCH" which triggers two parameterized
build entries for a second level project "build_generator" with two
different values for a second generator parameter "VIRTUALENV_NAME". The
"build_generator" project in turn triggers  two different projects to
run tests. Running the hierarchy generates seven projects overall. If
you need it, I can probably provide the configuration itself.

After running the hierarchy in the default create mode, I see the seven
new projects. Then, I run the hierarchy exactly the same way except
checking the "Delete jobs" and confirmation check boxes. The top-level
"trigger_builds_generator" job succeeds immediately, removing the
project it had created. However, three jobs remain executing, one for
each lower level generator project. They cannot be killed by any means
I'm aware of.

Once I restart Jenkins, the invincible jobs are gone of course and some
of the projects they were intended to delete have gone away. As I said,
I only see this problem when using the delete mode. Creating brand new
or replacing existing jobs works fine. It looks like there's some
locking problem that only exhibits in delete mode.

syl20bnr wrote:
> Can you give me more details on your hierarchy so I can try to
> reproduce this bug ?
> Thank you.
>
> Le jeudi 3 janvier 2013 23:02:15 UTC-5, JonathanRRogers a écrit :
>
> Whenever I run a job generator job to delete an existing hierarchy
> of generated jobs, the generator jobs themselves get stuck. They
> never complete and if I attempt to kill them manually, the entire
> Jenkins web interface gets stuck and I can never load another
> page. The only way to get rid of the stuck jobs I've found so far
> is to restart Jenkins. Generating new jobs doesn't seem to have
> the same problem, even if replacing existing ones.
>


-- 
Jonathan Rogers



Re: Run junkins jobs as different user

2013-01-07 Thread Jonathan Rogers
SSH is not the only way to run something as a different user. On any
Unix-like system, you should be familiar with the "sudo" command which
can be configured to allow any user to run any command as some other
user, optionally restricting the command and optionally requiring a
password.
http://linux.die.net/man/8/sudo>

However, if you ever want to use multiple slaves, using SSH may turn out
to be a simpler configuration even if running a slave as a different
user on the same system.

Adam Tong wrote:
> Hi,
>
> This means the only way I can do that is to use a slave.
>
> As a developer I never needed to do that before even if I am familiar
> with the terms master/slave.
>
> Do you suggest any link for beginners? if it is in the context of
> jenkins would be awesome?
>
>
> Thank you
>
>
>
> On Fri, Jan 4, 2013 at 6:01 PM, Les Mikesell  wrote:
>> On Fri, Jan 4, 2013 at 3:35 PM, Adam Tong  wrote:
>>> We are using Linux.
>>>
>>> So maybe there is a way to that on Linux? But this supposes Jenkins
>>> offers that possibility.
>> If you use ssh to start the slave, you should be able to log in as any
>> user - as long as you have the password or set up keys.  I think you
>> should even be able to run multiple instances on the same host as
>> different users if you wanted.

-- 
Jonathan Rogers



Re: Two quick questions about slave nodes.

2013-01-04 Thread Jonathan Rogers
Andrew Bayless wrote:
> Hello,
>
> I have two quick questions about Jenkins slaves:
>
> 1) Is it possible to have Jenkins install a slave on a machine remotely ?
>
> 2) Is it possible to have a slave uninstall itself ?

Neither installation nor uninstallation is necessary in many cases as
long as a JVM capable of running the slave exists on the system. I have
Jenkins run a slave via SSH and it copies the JAR automatically and runs
it with no installation step necessary.

For more details:
https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-Differentwaysofstartingslaveagents>

-- 
Jonathan Rogers



Re: Dead Executor

2012-11-09 Thread RogerS
Thanks. That does indeed look very similar and I'm also running Jenkins as 
a service (on Windows Server 2008 R2).

I haven't quite worked out how to update the bug yet...

Kr
Roger


On Friday, 9 November 2012 13:41:25 UTC, Christopher Orr wrote:
>
> Sounds like it's possibly related to 
> https://issues.jenkins-ci.org/browse/JENKINS-15652 
>
> You could add info about your stacktrace, Jenkins config and environment 
> to that bug. 
>
>
> On 09/11/12 13:08, RogerS wrote: 
> > Hi, 
> > 
> > I'm relatively new to Jenkins and have created a set of jobs to build 
> > our C/C++ project and test harnesses and run tests with the built 
> > executables, so the jobs have trigger links to trigger the next stage. 
> > After a 'reworking' of the jobs to use the Perforce plugin in a 
> > different way (utilise the client spec in file) and an update to 1.488 I 
> > am experiencing problems with Dead Executors but currently have no idea 
> > as to where to start looking to resolve this issue. An example below. 
> > 
> > Any help/suggestions appreciated. 
> > 
> > Kr 
> > Roger 
> > 
> > Nov 9, 2012 9:10:27 AM hudson.triggers.SafeTimerTask run 
> > SEVERE: Timer task hudson.model.Queue$MaintainTask@1de2b1 failed 
> > java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to 
> > load #256 DESC: lo=11,hi=10,size=11,size2=11 
> > at 
> > 
> jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418)
>  
>
> > at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207) 
> > at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100) 
> > at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813) 
> > at hudson.model.Job.getEstimatedDuration(Job.java:820) 
> > at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:320) 
> > at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:303) 
> > at hudson.model.Queue.maintain(Queue.java:1033) 
> > at hudson.model.Queue$MaintainTask.doRun(Queue.java:1759) 
> > at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) 
> > at java.util.TimerThread.mainLoop(Unknown Source) 
> > at java.util.TimerThread.run(Unknown Source) 
> > 
> > Nov 9, 2012 9:10:27 AM jenkins.model.lazy.AbstractLazyLoadRunMap search 
> > WARNING: Assertion error: failing to load #256 DESC: 
> > lo=11,hi=10,size=11,size2=11 
> > java.lang.Exception 
> > at 
> > 
> jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:417)
>  
>
> > at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207) 
> > at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100) 
> > at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813) 
> > at hudson.model.Job.getEstimatedDuration(Job.java:820) 
>
>

Dead Executor

2012-11-09 Thread RogerS
Hi,

I'm relatively new to Jenkins and have created a set of jobs to build our 
C/C++ project and test harnesses and run tests with the built executables, 
so the jobs have trigger links to trigger the next stage. After a 
'reworking' of the jobs to use the Perforce plugin in a different way 
(utilise the client spec in file) and an update to 1.488 I am experiencing 
problems with Dead Executors but currently have no idea as to where to 
start looking to resolve this issue. An example below.

Any help/suggestions appreciated.

Kr
Roger

Nov 9, 2012 9:10:27 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task hudson.model.Queue$MaintainTask@1de2b1 failed
java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load 
#256 DESC: lo=11,hi=10,size=11,size2=11
at 
jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100)
at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813)
at hudson.model.Job.getEstimatedDuration(Job.java:820)
at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:320)
at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:303)
at hudson.model.Queue.maintain(Queue.java:1033)
at hudson.model.Queue$MaintainTask.doRun(Queue.java:1759)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

Nov 9, 2012 9:10:27 AM jenkins.model.lazy.AbstractLazyLoadRunMap search
WARNING: Assertion error: failing to load #256 DESC: 
lo=11,hi=10,size=11,size2=11
java.lang.Exception
at 
jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:417)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100)
at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813)
at hudson.model.Job.getEstimatedDuration(Job.java:820)