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

Workflow support of Copyartifact

    XMLWordPrintable

Details

    Description

      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
      }
      

      Attachments

        Issue Links

          Activity

            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.

            nateswartz 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.

            Code changed in jenkins
            User: ikedam
            Path:
            .gitignore
            pom.xml
            src/main/java/hudson/plugins/copyartifact/Copier.java
            src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
            src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java
            src/main/java/hudson/plugins/copyartifact/FilePathCopyMethod.java
            src/main/java/hudson/plugins/copyartifact/FingerprintingCopyMethod.java
            src/main/resources/hudson/plugins/copyartifact/Messages.properties
            src/main/resources/hudson/plugins/copyartifact/Messages_de.properties
            src/main/resources/hudson/plugins/copyartifact/Messages_ja.properties
            src/test/java/hudson/plugins/copyartifact/CopierTest.java
            src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
            src/test/java/hudson/plugins/copyartifact/CopyArtifactWorkflowTest.java
            src/test/java/hudson/plugins/copyartifact/DownstreamBuildSelectorTest.java
            src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java
            src/test/java/hudson/plugins/copyartifact/testutils/CopyArtifactUtil.java
            http://jenkins-ci.org/commit/copyartifact-plugin/325f16adb3fc4f5d587b687bcb94b1726eeb033a
            Log:
            Merge pull request #55 from tfennelly/BuildStep-Job-v2

            [FIXED JENKINS-24887] CopyArtifact to implement workflow SimpleBuildStep

            Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/eda80351b205...325f16adb3fc

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: .gitignore pom.xml src/main/java/hudson/plugins/copyartifact/Copier.java src/main/java/hudson/plugins/copyartifact/CopyArtifact.java src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java src/main/java/hudson/plugins/copyartifact/FilePathCopyMethod.java src/main/java/hudson/plugins/copyartifact/FingerprintingCopyMethod.java src/main/resources/hudson/plugins/copyartifact/Messages.properties src/main/resources/hudson/plugins/copyartifact/Messages_de.properties src/main/resources/hudson/plugins/copyartifact/Messages_ja.properties src/test/java/hudson/plugins/copyartifact/CopierTest.java src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java src/test/java/hudson/plugins/copyartifact/CopyArtifactWorkflowTest.java src/test/java/hudson/plugins/copyartifact/DownstreamBuildSelectorTest.java src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java src/test/java/hudson/plugins/copyartifact/testutils/CopyArtifactUtil.java http://jenkins-ci.org/commit/copyartifact-plugin/325f16adb3fc4f5d587b687bcb94b1726eeb033a Log: Merge pull request #55 from tfennelly/BuildStep-Job-v2 [FIXED JENKINS-24887] CopyArtifact to implement workflow SimpleBuildStep Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/eda80351b205...325f16adb3fc
            tfennelly Tom FENNELLY added a comment - Here's a short blog about this feature: http://developer-blog.cloudbees.com/2015/01/copying-artifacts-between-builds-in.html
            ikedam ikedam added a comment -

            Released 1.34.
            It will be available in a day.

            ikedam ikedam added a comment - Released 1.34. It will be available in a day.

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/a032d4c2e9ea9449b9dbc6b5ec80f527f4b49101
            Log:
            JENKINS-24887 JENKINS-26104 Noting.

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: