Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13644

Rebuild plugin can't rebuild when using parameters specified by copyartifact

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • rebuild-plugin
    • None
    • Jenkins 1.461, copyartifact 1.21, rebuild 1.10

      When choosing to do a rebuild of a build that used a copyartifact parameter, the following exception is raised:

      java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.copyartifact.BuildSelector from

      {"name":"SOURCE_BUILD","value":"<SpecificBuildSelector><buildNumber>122<\/buildNumber><\/SpecificBuildSelector>"}

      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:633)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373)
      at hudson.plugins.copyartifact.BuildSelectorParameter.createValue(BuildSelectorParameter.java:68)
      at com.sonyericsson.rebuild.RebuildAction.doConfigSubmit(RebuildAction.java:186)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      (additional stack track removed)

      Downgrading to rebuild 1.09 resolved the problem.

          [JENKINS-13644] Rebuild plugin can't rebuild when using parameters specified by copyartifact

          Jason Swager created issue -
          Jason Swager made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Rino made changes -
          Assignee Original: ragesh_nair [ ragesh_nair ] New: Rino [ rinok ]

          Code changed in jenkins
          User: rinokadijk
          Path:
          src/main/java/com/sonyericsson/rebuild/RebuildAction.java
          http://jenkins-ci.org/commit/rebuild-plugin/b46fdf3d077fd237175a36db893435d195a7bbec
          Log:
          JENKINS-13644 - Rebuild plugin can't rebuild when using parameters specified by copyartifact
          -If the build parameter is of type buildselector (copyartifact plugin), then use the createValue from SimpleParameterDefinition to load the parameter. However, the copyartifact plugin should support the createValue(request, jsonObject). As soon as the copyartifact supports this method, this fix could be disabled.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: rinokadijk Path: src/main/java/com/sonyericsson/rebuild/RebuildAction.java http://jenkins-ci.org/commit/rebuild-plugin/b46fdf3d077fd237175a36db893435d195a7bbec Log: JENKINS-13644 - Rebuild plugin can't rebuild when using parameters specified by copyartifact -If the build parameter is of type buildselector (copyartifact plugin), then use the createValue from SimpleParameterDefinition to load the parameter. However, the copyartifact plugin should support the createValue(request, jsonObject). As soon as the copyartifact supports this method, this fix could be disabled.
          Rino made changes -
          Assignee Original: Rino [ rinok ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 144111 ] New: JNJira + In-Review [ 190915 ]
          Kevin Phillips made changes -
          Link New: This issue is related to JENKINS-39978 [ JENKINS-39978 ]
          ikedam made changes -
          Link New: This issue is related to JENKINS-41529 [ JENKINS-41529 ]

            Unassigned Unassigned
            jswager1 Jason Swager
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: