With supporting SimpleBuildStep introduced in Jenkins 1.577...

      (copied from https://github.com/jenkinsci/copyartifact-plugin/pull/43)
      Atm, it works using the base 'step' step (i.e. you need to specify the $class) e.g.

      node('master') {
        // Do stuff....
        step($class: 'hudson.plugins.copyartifact.CopyArtifact', projectName: 'project1', filter: 'hellothere.txt')
        // More stuff
      }
      

      Once the workflow apis are published we can build a dedicated step for this, it would look something like the following:

      node('master') {
        // Do stuff....
        copy(projectName: 'project1', filter: 'hellothere.txt')
        // More stuff
      }
      

          [JENKINS-24887] Workflow support of Copyartifact

          ikedam created issue -
          ikedam made changes -
          Link New: This issue is related to JENKINS-24892 [ JENKINS-24892 ]
          Jesse Glick made changes -
          Labels New: workflow
          Sean Sutherland made changes -
          Assignee New: Sean Sutherland [ ssutherland ]
          Sean Sutherland made changes -
          Assignee Original: Sean Sutherland [ ssutherland ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-26068 [ JENKINS-26068 ]

          This issue can be confusing, as it appears from the description that the basic Workflow "step" has been implemented in CopyArtifact. However, the description text comes from a pull request that was never integrated into the actual code base.

          Nathan Swartzentruber added a comment - This issue can be confusing, as it appears from the description that the basic Workflow "step" has been implemented in CopyArtifact. However, the description text comes from a pull request that was never integrated into the actual code base.
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 55 (Web Link)" [ 12013 ]
          Jesse Glick made changes -
          Assignee New: Tom FENNELLY [ tfennelly ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            tfennelly Tom FENNELLY
            ikedam ikedam
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: