Jenkins Fails To Start After Update

2016-07-20 Thread Shawn
Debian 8.5

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

Jenkins 2.14

After running apt-get update / upgrade and Jenkins is updated from 2.13 to
2.14 by the package, it failed to start.

I have also noticed this in previous 2.x upgrades as well. After I reboot
my system, it loads correctly.

sudo systemctl status jenkins.service
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins)
Active: failed (Result: exit-code) since Tue 2016-07-19 05:58:50 EDT; 41s
ago
Process: 2079 ExecStop=/etc/init.d/jenkins stop (code=exited,
status=0/SUCCESS )
Process: 2120 ExecStart=/etc/init.d/jenkins start (code=exited, status=7)

su[2135]: Successful su for jenkins by root
su[2135]: + ??? root:jenkins
su[2135]: pam_unix(su:session): session opened for u...0)
jenkins[2120]: Starting Jenkins Continuous Integrati...d!
systemd[1]: jenkins.service: control process exited,...=7
systemd[1]: Failed to start LSB: Start Jenkins at bo...e.
systemd[1]: Unit jenkins.service entered failed state.
JENKINS LOG:

Jul 19, 2016 5:52:32 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @546ms
Jul 19, 2016 5:52:32 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jul 19, 2016 5:52:33 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Jul 19, 2016 5:52:33 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find
org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /var/lib/jenkins found at:
EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@19fb8826
{/,file:/var/cache/jenkins/war/,AVAILABLE} {/var/cache/jenkins/war}

Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@3d484181
{HTTP/1.1} {0.0.0.0:8080}

Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @2890ms
Jul 19, 2016 5:52:34 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Jul 19, 2016 5:52:34 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jul 19, 2016 5:52:35 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
#

   1. A fatal error has been detected by the Java Runtime Environment:
   #
   2. SIGSEGV (0xb) at pc=0x7f664e80ad1d, pid=1791, tid=140076942526208
   #
   3. JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build
   1.8.0_91-b14)
   4. Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode
   linux-amd64 compressed oops)
   5. Problematic frame:
   6. V [libjvm.so+0x56cd1d] PhaseIdealLoop::Dominators()+0x63d
   #
   7. Failed to write core dump. Core dumps have been disabled. To enable
   core dumping, try "ulimit -c unlimited" before starting Java again
   #
   8. An error report file with more information is saved as:
   9. /tmp/hs_err_pid1791.log
   #
   10. Compiler replay data is saved as:
   11. /tmp/replay_pid1791.log
   #
   12. If you would like to submit a bug report, please visit:
   13. http://bugreport.java.com/bugreport/crash.jsp
   #
   #
   14. A fatal error has been detected by the Java Runtime Environment:
   #
   15. SIGSEGV (0xb) at pc=0x7f8716c90fea, pid=2145, tid=140217335858944
   #
   16. JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build
   1.8.0_91-b14)
   17. Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode
   linux-amd64 compressed oops)
   18. Problematic frame:
   19. V [libjvm.so+0x962fea] Node::replace_by(Node*)+0x3a
   #
   20. Failed to write core dump. Core dumps have been disabled. To enable
   core dumping, try "ulimit -c unlimited" before starting Java again
   #
   21. An error report file with more information is saved as:
   22. /tmp/hs_err_pid2145.log
   #
   23. Compiler replay data is saved as:
   24. /tmp/replay_pid2145.log
   #
   25. If you would like to submit a bug report, please visit:
   26. http://bugreport.java.com/bugreport/crash.jsp
   #

Any ideas?

-- 
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/CAMo-54maP144LMWanwdP56UP9QcQjqc%2B%3DypoMPhE6g4RRqEbXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Plugin or Groovy script to report on tests that fail consistently or that have passed consistently than failed for the first time

2015-01-27 Thread Shawn McCarthy
My ideal situation is that when my job that runs my automated tests 
finishes (another build step, with a groovy script or plugin?), any test 
that has failed the last 3 times (configurable amount), gets sent in the 
email (email-ext plugin). Also, any test that consistently passed (say 3 
times in a row), but than failed for the first time in this latest run, 
gets put in the email as a "new failure".

Does something like this exist yet? If not, Would I be able to accomplish 
this with a groovy script?

Thank you!

-- 
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/c542bb51-a7e8-4e2c-9a9e-1e969fc3162c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to detect wheather job started by upstream project or user has manually started project using groovy

2014-10-17 Thread Shawn Speer
There may be an easier way, but you can load the build.environment and 
evaluate the 'BUILD_CAUSE_UPSTREAMTRIGGER' environment variables to 
determine this.  The value is boolean.  There is also a 'BUILD_CAUSE' 
environment variable with values of 'MANUALTRIGGER', 'TIMERTRIGGER' and 
'UPSTREAMTRIGGER'.  There are probably more values, but that is what I see 
for my jobs.  

For a groovy template, this would be:

def env = build.environment
def cause = env.BUILD_CAUSE_UPSTREAMTRIGGER

Assume the same for a script.  If you want to find out the user information 
in the event of a manual trigger, you can install the Build User Vars 
 plugin.


On Tuesday, October 14, 2014 7:27:00 AM UTC-4, niraj nandane wrote:
>
> I have one job which i start as a downstream job. I want a groovy script 
> which will detect wheather this job is started as a downstream job or user 
> has started it customly by clicking build now button.
> Based on that i want to execute another job say "abc" .Means if current 
> job started as downstream job then do not execute "abc" otherwise execute 
> "abc" and wait until it finish
> -- 
> Thanks and regards--
> Niraj Nandane(Vit pune)
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Special Build Number Format

2014-10-17 Thread Shawn Speer
If you take the path of running a script to generate your version format, 
you can output the value to an env file and import using the EnvInject 
 Plugin as a 
build step.  You can then use this as a job variable throughout your 
various build steps and post build actions and in turn set the build name 
(in the build environment section of the job) to be the variable value.

On Friday, October 17, 2014 12:23:35 PM UTC-4, Allen Fisher wrote:
>
> Hi List— 
>
> Working on a new project, taking an existing build scheme and rolling it 
> into Jenkins. 
>
> I have a peculiar build number scheme I need to implement: 
>
>  
>
> So a the 10th build on October 29, 2014 would look like: 
>
> EA29A 
>
> I’m guessing we add a digit if we go past the single hex digit (if we 
> start over, I’m going to be pretty annoyed). The project moves pretty slow, 
> so the last digit hardly every goes past 6 
>
> I’ve looked at the version number plugin, and it looks like it could do 
> what I want, but it seems that I can’t get a format string to do this. 
>
> I’m fine running a script, but is there a plugin that would let me run a 
> script and set the build number? 
>
> Allen Fisher | +1 952-563-2746 
> www.helpsystems.com 
>
>
> ___ 
>
>
> Confidentiality Notice: This e-mail, including attachments, may include 
> confidential and/or proprietary information, and may be used only by the 
> person or entity to which it is addressed. If the reader of this e-mail is 
> not the intended recipient or his or her authorized agent, the reader is 
> hereby notified that any dissemination, distribution or copying of this 
> e-mail is prohibited. If you have received this e-mail in error, please 
> notify the sender by replying to this message and delete this e-mail 
> immediately. 
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Maintaining a single reserved device throughout multiple Jenkins jobs

2014-06-05 Thread Shawn Speer
Hello,

  Our Jenkins environment has multiple executors that are running Robot 
Framework tests for build verification (and other automation).   The 
executors make use of our external API and Selenium library for testing 
against our product remotely.  We have a pool of devices (both VM and 
physical appliances) that are used for our automation testbeds.   We 
currently have a home brew solution for device reservation.  At the start 
of a Jenkins job, an available device will be reserved and the job will 
execute against it.  We have a need where multiple concurrent jobs will 
execute against a single device.  For example:

Job 1 - New Install & Setup Test 
Job 2 - Basic BVT against new install and setup from Job 1
Job 3 - Advanced BVT against new install and setup from Job 1

If the device is freed between jobs, there is a chance that the queue 
manager will pick it up if other jobs are waiting in the queue.  

I'm wondering if there is a plugin or some other solution for this 
scenario.  We can update our script to trigger job 2 and job 3 remotely 
(job 1 remains running until the subsequent jobs have completed though), 
which we have done, but I thought I would see if anyone else has a similar 
scenario and what solution you've used if so.  A friend suggested selenium 
grid, which I've started to look into. 


Thanks,
Shawn


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


LTS 1.554.2 updates

2014-06-04 Thread Shawn Baker
Hello,

I've recently switch my Jenkins machine over from the weekly builds (was 
using 1.554) to the LTS builds (1.554.2).

When I look at the "Manage Jenkins" page, it shows that an update is 
available to 1.564.  I would think that since I am using a LTS build, that 
it should tell me there are no updates (unless there are updates to the LTS 
branch).  What is the correct information to display here?

Also, the wiki page for the LTS Release Line 
<https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line> says that 
you may need to clear out the %JENKINS_HOME%/data/updates directory when 
you change the plugin update site.  In my Jenkins home directory, I have no 
data directory.  But I do have an updates directory.  So, is this the 
directory I should be removing the contents?

Thanks,
Shawn Baker

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


VSS plugin com4j

2014-04-29 Thread Shawn Cole
I am having a lot of trouble trying to get Jenkins to pull from Visual 
Source Safe. The problem is I am on a 64 bit system with 64 bit java, and 
the com4j dll that comes with the plugin is 32 bit.
I keep getting this error: 

FATAL: D:\Jenkins\plugins\vss\WEB-INF\lib\com4j.dll: Can't load IA 32-bit .dll 
on a AMD 64-bit platformjava.lang.UnsatisfiedLinkError 
: 
D:\Jenkins\plugins\vss\WEB-INF\lib\com4j.dll: Can't load IA 32-bit .dll on a 
AMD 64-bit platform


I tried implementing the new com4j found 
here http://kohsuke.org/2012/04/27/com4j-updates/ with these steps:
1. download zip and extract com4j-amd64.dll
2. replace the com4j.dll in the lib folder of the VSS plugin directory
3. Do regsvr32 on the new dll

Those steps lead me to a new error that I can't find any information about :

[history] Unable to open database C:\Program Files (x86)\Microsoft Visual 
Studio\VSS\srcsafe.ini
hudson.util.IOException2: com4j.ComException: 80040154 CoCreateInstance failed 
: Class not registered : .\com4j.cpp:153


The error seems to indicate that I didn't register the com4j dll, but I made 
sure I navigated to the sysWOW64 folder and called the the regsvr32.exe on the 
new com4j.dll . I tried keeping the dll with the amd64 and renaming it to just 
com4j.


A bunch of information out there claims this problem is resolved by running 
jenkins on a 32 bit version of java, But I tried implementing this and it did 
not work for me, as it broke too many other things on the server.

Thank you for your time

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need suport about Reporter Output with TestNG

2014-01-27 Thread Shawn McCarthy
Have you tried just  instead of  ? I use  in my Reporter.log 
and it looks correct.

On Sunday, January 26, 2014 8:42:15 PM UTC-7, Nguyen Hung wrote:
>
> Hi all, 
>
> I using TestNG to report results of jobs but I met a problem about 
> Reporter Output... It does not understand the HTML tags (ex:  ..) => 
> does anyone have a simple method for implementing this?
>
> Note: Please see the attachment for more details.
>
> Thanks,
> Hung Nguyen
>

-- 
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: Upgrade problem

2013-11-26 Thread Shawn McCarthy
Does it have to do with 
: https://issues.jenkins-ci.org/browse/JENKINS-20630 ?


On Tuesday, November 26, 2013 4:50:16 AM UTC-7, Peter Miklosko wrote:
>
> After upgrading from 1.533 to 1.541 I received following error
>
> hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: 
> java.io.IOException: Unable to read /var/lib/jenkins/config.xml
>   at hudson.WebAppMain$3.run(WebAppMain.java:234)
> Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: 
> Unable to read /var/lib/jenkins/config.xml
>   at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
>   at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
>   at jenkins.model.Jenkins.executeReactor(Jenkins.java:907)
>   at jenkins.model.Jenkins.(Jenkins.java:806)
>   at hudson.model.Hudson.(Hudson.java:82)
>   at hudson.model.Hudson.(Hudson.java:78)
>   at hudson.WebAppMain$3.run(WebAppMain.java:222)
> Caused by: java.io.IOException: Unable to read /var/lib/jenkins/config.xml
>   at hudson.XmlFile.unmarshal(XmlFile.java:169)
>   at jenkins.model.Jenkins$17.run(Jenkins.java:2541)
>   at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
>   at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
>   at jenkins.model.Jenkins$7.runTask(Jenkins.java:896)
>   at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
>   at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>   at java.lang.Thread.run(Thread.java:744)
> Caused by: com.thoughtworks.xstream.converters.ConversionException: -1 : -1
>  Debugging information 
> message : -1
> cause-exception : java.lang.ArrayIndexOutOfBoundsException
> cause-message   : -1
> class   : hudson.model.Hudson
> required-type   : hudson.model.Hudson
> converter-type  : hudson.util.RobustReflectionConverter
> path: /hudson/disabledAdministrativeMonitors
> line number : 3
> version : not available
> ---
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
>   at 
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
>   at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
>   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)
>   at hudson.util.XStream2.unmarshal(XStream2.java:109)
>   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
>   at hudson.XmlFile.unmarshal(XmlFile.java:165)
>   ... 9 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
>   at 
> com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77)
>   at java.util.HashMap.putMapEntries(HashMap.java:511)
>   at java.util.HashMap.putAll(HashMap.java:784)
>   at 
> com.thoughtworks.xstream.core.util.OrderRetainingMap.(OrderRetainingMap.java:36)
>   at 
> com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135)
>   at 
> com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldOrNull(FieldDictionary.java:113)
>   at 
> com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldOrNull(PureJavaReflectionProvider.java:186)
>   at 
> hudson.util.RobustReflectionConverter.fieldDefinedInClass(RobustReflectionConverter.java:328)
>   at 
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:269)
>   at 
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
>   ... 18 more
>
>

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