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

Copyartifact doesn't work with Workflow's snippet generator.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      You can test the behavior of the snippet generator in a following way:

      • Create a new workflow project
      • Select "Groovy CPS DSL" in Definition for Workflow
      • Check "Snippet generator"
      • Select "General Build Step" for "Sample Step"
      • Select "Copy artifacts from another project" for "Build Step"
      • Configure copyartifact, and click "Generate Groovy"

      Result:

      • The validation for "Project name" fails with NPE.
      • The generated result is
        ```
        step <object of type hudson.plugins.copyartifact.CopyArtifact>
        ```

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          The latter problem (resulting {{step <object of type ...>) was fixed with https://github.com/jenkinsci/copyartifact-plugin/pull/62.

          Show
          ikedam ikedam added a comment - The latter problem (resulting {{step <object of type ...>) was fixed with https://github.com/jenkinsci/copyartifact-plugin/pull/62 .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
          http://jenkins-ci.org/commit/copyartifact-plugin/f28c55475678492a5e0659cb444b062fa5fe748b
          Log:
          [FIXED JENKINS-28096] Use Job instead of AbstractProject when checking project names. This avoids validation errors with workflow's snippet generator.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/CopyArtifact.java http://jenkins-ci.org/commit/copyartifact-plugin/f28c55475678492a5e0659cb444b062fa5fe748b Log: [FIXED JENKINS-28096] Use Job instead of AbstractProject when checking project names. This avoids validation errors with workflow's snippet generator.
          Hide
          ikedam ikedam added a comment -

          Fixed in copyartifact-1.35.1.
          It will be available in a day.

          Show
          ikedam ikedam added a comment - Fixed in copyartifact-1.35.1. It will be available in a day.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              ikedam ikedam
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: