[JIRA] (JENKINS-40385) Github Issue plugin refuses to create issue on build failure

1 view
Skip to first unread message

lukasz@wiechec.eu (JIRA)

unread,
Dec 12, 2016, 11:06:01 AM12/12/16
to jenkinsc...@googlegroups.com
Lukasz Wiechec created an issue
 
Jenkins / Bug JENKINS-40385
Github Issue plugin refuses to create issue on build failure
Issue Type: Bug Bug
Assignee: Daniel Lo Nigro
Components: github-issues-plugin
Created: 2016/Dec/12 4:05 PM
Environment: Jenkins 2.35, Windows. Using GitHub Enterprise.
Priority: Minor Minor
Reporter: Lukasz Wiechec

I am trying to run Github Issues plugin on my build and here is the exception that is reported in the build while attempting to create Github Issue:

[ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE
Skipping Cobertura coverage report as build was not UNSTABLE or better ...
ERROR: Build step failed with exception
java.lang.ClassCastException: hudson.maven.MavenModuleSetBuild cannot be cast to hudson.model.Build
	at org.jenkinsci.plugins.githubissues.GitHubIssueNotifier.perform(GitHubIssueNotifier.java:122)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1067)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
	at hudson.model.Run.execute(Run.java:1753)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:404)
Build step 'Create GitHub issue on failure' marked build as failure
Finished: FAILURE
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

sites+jenkins@dan.cx (JIRA)

unread,
Dec 13, 2016, 3:09:01 AM12/13/16
to jenkinsc...@googlegroups.com
Daniel Lo Nigro commented on Bug JENKINS-40385
 
Re: Github Issue plugin refuses to create issue on build failure

Interesting, I wonder if this is specific to Maven builds. I don't have much experience with Jenkins.

scm_issue_link@java.net (JIRA)

unread,
Mar 4, 2017, 5:59:02 PM3/4/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Daniel Lo Nigro
Path:
src/main/java/org/jenkinsci/plugins/githubissues/GitHubIssueNotifier.java
http://jenkins-ci.org/commit/github-issues-plugin/32aea3f6f0971d3c9976a7fc58a75be1e679d619
Log:
Fix JENKINS-40385: Use AbstractBuild rather than Build so it works for Maven builds too

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

sites+jenkins@dan.cx (JIRA)

unread,
Mar 4, 2017, 6:16:02 PM3/4/17
to jenkinsc...@googlegroups.com
Daniel Lo Nigro resolved as Fixed
 

This was fixed in version 1.2.2 of the plugin.

Change By: Daniel Lo Nigro
Status: Open Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages