Quantcast

[JIRA] (JENKINS-14645) Executing external job results in an ClassCastException (ExternalRun cannot be cast to AbstractBuild)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14645) Executing external job results in an ClassCastException (ExternalRun cannot be cast to AbstractBuild)

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: Gregory Boissinot
Attachments: jenkins_client_dump_20120801.txt
Components: envinject
Created: 01/Aug/12 6:03 AM
Description:

I'm trying to monitor with jenkins 1.475 an external executed job.
I copied the following files to client

  • ant-1.8.3.jar
  • commons-io-1.4.jar
  • commons-lang-2.4.jar
  • jenkins-core-1.475.jar
  • jna-posix-1.0.3.jar
  • remoting-2.16.jar
  • xstream-1.3.1-jenkins-11.jar
    (as described in [1] and [2])
    The environmentvariable JENKINS_HOME is set properly.

When I execute the job with the command
> java jar jenkins-core*.jar "nameOfTheJob" cmd /c echo "Hello world!"

I got the result
> [...]
> Exception: java.lang.ClassCastException: hudson.model.ExternalRun cannot be cast to hudson.model.AbstractBuild
> [...]
> at
> org.jenkinsci.plugins.envinject.EnvInjectListener.onCompleted(EnvInjectListener.java:351)

The complete errorlog is attached.

[1] https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs
[2] http://kvdev.wordpress.com/2012/03/01/jenkins-monitoring-external-jobs/

Daniel

Environment: Client is running Windows XP
Project: Jenkins
Labels: plugin
Priority: Major Major
Reporter: Daniel de Wildt
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14645) Executing external job results in an ClassCastException (ExternalRun cannot be cast to AbstractBuild)

JIRA noreply@jenkins-ci.org
Change By: Daniel de Wildt (01/Aug/12 11:13 AM)
Environment: Client is running Windows XP , Java 1.7.0_05, Jenkins 1.475
Server is running Jenkins 1.475, Envinject 1.63
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14645) Executing external job results in an ClassCastException (ExternalRun cannot be cast to AbstractBuild)

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Gregory Boissinot resolved Bug JENKINS-14645 as Fixed
Change By: Gregory Boissinot (01/Aug/12 7:07 PM)
Status: Open Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14645) Executing external job results in an ClassCastException (ExternalRun cannot be cast to AbstractBuild)

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Gregory Boissinot
Path:
src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
http://jenkins-ci.org/commit/envinject-plugin/1f0b60388d84928bc03641dcfea41d8284a870fb
Log:
Fix JENKINS-14645

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14645) Executing external job results in an ClassCastException (ExternalRun cannot be cast to AbstractBuild)

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Jesse Glick (30/Oct/12 4:16 AM)
Component/s: external-monitor-job
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...