[
https://issues.jenkins-ci.org/browse/JENKINS-12216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dieter De Meyer updated JENKINS-12216:
--------------------------------------
Summary: Rake/Ruby build step is not available in actions for other
plugins (was: Rake build step is not available in actions from promoted_build
plugin)
Environment:
Jenkins 1.420 & 1.444
Rake plugin 1.7.7
Promoted build plugin 2.4
Conditional buildstep plugin 0.3
was:
Jenkins 1.420 & 1.444
Rake plugin 1.7.7
Promoted build plugin 2.4
Component/s: ruby
> Rake/Ruby build step is not available in actions for other plugins
> ------------------------------------------------------------------
>
> Key: JENKINS-12216
> URL: https://issues.jenkins-ci.org/browse/JENKINS-12216
> Project: Jenkins
> Issue Type: Bug
> Components: rake, ruby
> Affects Versions: current
> Environment: Jenkins 1.420 & 1.444
> Rake plugin 1.7.7
> Promoted build plugin 2.4
> Conditional buildstep plugin 0.3
> Reporter: Kristof Willaert
> Assignee: Dieter De Meyer
> Priority: Minor
>
> With the Rake plugin installed, a rake build step appears in the list of
> build steps. However, when also using the promoted builds plugin, the list of
> actions to be executed with a promoted build does not contain the rake build
> step.
> Upon investigation, the list of possible actions in the promoted builds
> plugin gets compiled using the following condition:
> {code}
> BuildStepDescriptor bsd = (BuildStepDescriptor) d;
> if(bsd.isApplicable(PromotionProcess.class))
> list.add(d);
> {code}
> (in
> promoted-builds-plugin/src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java)
> I guess the reason why the Rake builder does not appear in the list of
> actions, is because the RakeDescriptor class
> extends the Descriptor<Builder> class instead of the
> BuildStepDescriptor<Builder> class:
> {code}
> public static final class RakeDescriptor extends Descriptor<Builder> {
> {code}
> (in rake-plugin/src/main/java/hudson/plugins/rake/Rake.java)
> My guess is that adding an
> {code}
> import hudson.tasks.BuildStepDescriptor;
> {code}
> and changing the RakeDescriptor class to:
> {code}
> public static final class RakeDescriptor extends BuildStepDescriptor<Builder>
> {
> {code}
> might fix this.
> I have to say I am a complete Java newbie, and the Jenkins code is unknown to
> me, so
> I might be way off.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira