• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • Jenkins 1.609
      workflow-plugin 1.6
      embeddable-build-status-plugin 1.7

      The new Job type added by the workflow-plugin cannot be casted to AbstractProject:

      java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject
      	at org.jenkinsci.plugins.badge.RunBadgeAction.<init>(RunBadgeAction.java:18)
      	at org.jenkinsci.plugins.badge.RunBadgeActionFactory.createFor(RunBadgeActionFactory.java:21)
      	at hudson.model.Run.getTransientActions(Run.java:376)
      

      Would be nice to see this new plugin covered by a badge too.

          [JENKINS-28642] Add Support to the New Workflow Plugin

          Code changed in jenkins
          User: Jesse Glick
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/workflow-plugin/0e761dad73fab0f1cb11621690e339b6cc8c5d65
          Log:
          JENKINS-28642 Noting.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/0e761dad73fab0f1cb11621690e339b6cc8c5d65 Log: JENKINS-28642 Noting.

          Code changed in jenkins
          User: Marius Gedminas
          Path:
          .gitignore
          pom.xml
          src/main/java/org/jenkinsci/plugins/badge/BadgeAction.java
          src/main/java/org/jenkinsci/plugins/badge/BadgeActionFactory.java
          src/main/java/org/jenkinsci/plugins/badge/PublicBadgeAction.java
          src/main/java/org/jenkinsci/plugins/badge/RunBadgeAction.java
          src/test/java/org/jenkinsci/plugins/badge/WorkflowBadgeActionTest.java
          http://jenkins-ci.org/commit/embeddable-build-status-plugin/b94c682d349d868893634b1afc0dcab7225f6c7b
          Log:
          Merge pull request #17 from jenkinsci/workflow-compatibility

          JENKINS-28642 Workflow compatibility for embeddable build status

          Compare: https://github.com/jenkinsci/embeddable-build-status-plugin/compare/5e976a690601...b94c682d349d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marius Gedminas Path: .gitignore pom.xml src/main/java/org/jenkinsci/plugins/badge/BadgeAction.java src/main/java/org/jenkinsci/plugins/badge/BadgeActionFactory.java src/main/java/org/jenkinsci/plugins/badge/PublicBadgeAction.java src/main/java/org/jenkinsci/plugins/badge/RunBadgeAction.java src/test/java/org/jenkinsci/plugins/badge/WorkflowBadgeActionTest.java http://jenkins-ci.org/commit/embeddable-build-status-plugin/b94c682d349d868893634b1afc0dcab7225f6c7b Log: Merge pull request #17 from jenkinsci/workflow-compatibility JENKINS-28642 Workflow compatibility for embeddable build status Compare: https://github.com/jenkinsci/embeddable-build-status-plugin/compare/5e976a690601...b94c682d349d

          svanoort, Can we close this ticket as done?

          Manuel Recena Soto added a comment - svanoort , Can we close this ticket as done?

          Sam Van Oort added a comment -

          recena You had previously indicated that you felt this code required further changes. I have left this issue open pending this, even though the original work was completed long ago (and recently merged by maintainer at another's request).

          Did this change?

          Sam Van Oort added a comment - recena You had previously indicated that you felt this code required further changes. I have left this issue open pending this, even though the original work was completed long ago (and recently merged by maintainer at another's request). Did this change?

          svanoort, LGTM. I closed the issue because I saw that the PR was merged.

          Manuel Recena Soto added a comment - svanoort , LGTM. I closed the issue because I saw that the PR was merged.

          Sam Van Oort added a comment -

          recena Re-closing, since it sounds like the feedback has changed.

          Sam Van Oort added a comment - recena Re-closing, since it sounds like the feedback has changed.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/workflow-plugin/89ed1f8935f2d770cf18d6bd7d4df013f02348d4
          Log:
          JENKINS-28642 Noting merge.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/89ed1f8935f2d770cf18d6bd7d4df013f02348d4 Log: JENKINS-28642 Noting merge.

          R. Tyler Croy added a comment -

          What's left to get a new version of the plugin with this change released?

          R. Tyler Croy added a comment - What's left to get a new version of the plugin with this change released?

          released with v1.9

          Thomas Döring added a comment - released with v1.9

            svanoort Sam Van Oort
            valones Flávio Augusto Valones
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: