java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowRun cannot be cast to hudson.model.AbstractBuild
              at com.sonyericsson.rebuild.RebuildActionFactory.createFor(RebuildActionFactory.java:50)
      

          [JENKINS-26024] Does not work with workflows

          Jesse Glick created issue -

          Jesse Glick added a comment -

          https://github.com/jenkinsci/rebuild-plugin/commit/1ca3940c62a79e5e8aba616aa4d79f2e33f24652 avoids the exception but does not make the action actually available and functional.

          Jesse Glick added a comment - https://github.com/jenkinsci/rebuild-plugin/commit/1ca3940c62a79e5e8aba616aa4d79f2e33f24652 avoids the exception but does not make the action actually available and functional.
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 31 (Web Link)" [ 11925 ]

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/com/sonyericsson/rebuild/RebuildAction.java
          src/main/java/com/sonyericsson/rebuild/RebuildActionFactory.java
          src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java
          src/main/java/com/sonyericsson/rebuild/RebuildProjectActionFactory.java
          src/main/java/com/sonyericsson/rebuild/RebuildValidator.java
          src/main/java/com/sonyericsson/rebuild/Rebuilder.java
          src/main/resources/com/sonyericsson/rebuild/RebuildAction/RunParameterValue.jelly
          src/main/resources/com/sonyericsson/rebuild/RebuildAction/parameterized.jelly
          http://jenkins-ci.org/commit/rebuild-plugin/a4c94010177de19207a343b2064600e11e97b54b
          Log:
          [FIXED JENKINS-26024] Allow this plugin to operate on workflows.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/com/sonyericsson/rebuild/RebuildAction.java src/main/java/com/sonyericsson/rebuild/RebuildActionFactory.java src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java src/main/java/com/sonyericsson/rebuild/RebuildProjectActionFactory.java src/main/java/com/sonyericsson/rebuild/RebuildValidator.java src/main/java/com/sonyericsson/rebuild/Rebuilder.java src/main/resources/com/sonyericsson/rebuild/RebuildAction/RunParameterValue.jelly src/main/resources/com/sonyericsson/rebuild/RebuildAction/parameterized.jelly http://jenkins-ci.org/commit/rebuild-plugin/a4c94010177de19207a343b2064600e11e97b54b Log: [FIXED JENKINS-26024] Allow this plugin to operate on workflows.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/com/sonyericsson/rebuild/RebuildAction.java
          src/main/java/com/sonyericsson/rebuild/RebuildActionFactory.java
          src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java
          src/main/java/com/sonyericsson/rebuild/RebuildProjectActionFactory.java
          src/main/java/com/sonyericsson/rebuild/RebuildValidator.java
          src/main/java/com/sonyericsson/rebuild/Rebuilder.java
          src/main/resources/com/sonyericsson/rebuild/RebuildAction/RunParameterValue.jelly
          src/main/resources/com/sonyericsson/rebuild/RebuildAction/parameterized.jelly
          http://jenkins-ci.org/commit/rebuild-plugin/e17364675a5d21acf76e5c5bfc5b2f21cac2b918
          Log:
          Merge pull request #31 from jenkinsci/JENKINS-26024-workflow

          [FIXED JENKINS-26024] Allow this plugin to operate on workflows

          Compare: https://github.com/jenkinsci/rebuild-plugin/compare/1ca3940c62a7...e17364675a5d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/com/sonyericsson/rebuild/RebuildAction.java src/main/java/com/sonyericsson/rebuild/RebuildActionFactory.java src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java src/main/java/com/sonyericsson/rebuild/RebuildProjectActionFactory.java src/main/java/com/sonyericsson/rebuild/RebuildValidator.java src/main/java/com/sonyericsson/rebuild/Rebuilder.java src/main/resources/com/sonyericsson/rebuild/RebuildAction/RunParameterValue.jelly src/main/resources/com/sonyericsson/rebuild/RebuildAction/parameterized.jelly http://jenkins-ci.org/commit/rebuild-plugin/e17364675a5d21acf76e5c5bfc5b2f21cac2b918 Log: Merge pull request #31 from jenkinsci/ JENKINS-26024 -workflow [FIXED JENKINS-26024] Allow this plugin to operate on workflows Compare: https://github.com/jenkinsci/rebuild-plugin/compare/1ca3940c62a7...e17364675a5d

          Code changed in jenkins
          User: Jesse Glick
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/workflow-plugin/f198f75fd91223d7f440997bfb5d51c0ef04cc6a
          Log:
          JENKINS-26024 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/f198f75fd91223d7f440997bfb5d51c0ef04cc6a Log: JENKINS-26024 Noting.

          Hi

          Are there plans to release the plugin with this fix (and others)
          (and are the maintainers still around ?)

          We currently get a bunch of stacktraces in the log from the latest release version, which is frustrating, considering it has been fixed for a while...

          Jean Blanchard added a comment - Hi Are there plans to release the plugin with this fix (and others) (and are the maintainers still around ?) We currently get a bunch of stacktraces in the log from the latest release version, which is frustrating, considering it has been fixed for a while...

          Jesse Glick added a comment -

          Hard to tell from the plugin’s commit history if it is abandoned or not; the last release was in August, and my attempts to ping the apparent developer in the PR came to nothing. (kohsuke would up merging it.) I would recommend sending out a request for update to the jenkinsci-dev list, CC’ing the maintainers if their email addresses are publicly visible. If there is no response, someone can just cut a release. I am afraid dealing with unresponsive maintainers is a constant battle and there is not a very good process for it.

          Jesse Glick added a comment - Hard to tell from the plugin’s commit history if it is abandoned or not; the last release was in August, and my attempts to ping the apparent developer in the PR came to nothing. ( kohsuke would up merging it.) I would recommend sending out a request for update to the jenkinsci-dev list, CC’ing the maintainers if their email addresses are publicly visible. If there is no response, someone can just cut a release. I am afraid dealing with unresponsive maintainers is a constant battle and there is not a very good process for it.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: