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

Latest successful artifact cannot be copied from Maven build

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • copyartifact-plugin
    • None
    • Jenkins 1.625.2, Copy Artifact Plugin 1.37

      Steps to reproduce:

      1. Create Maven build job #1. In the build job, check "Disable automatic artifact archiving".
      2. Create build job #2. Add "Copy artifacts from another project" build step. Set "Project name" to project #1. Set "Which build" to "latest successful build". Set "Artifacts to copy" to an existing artifact in project #1, e.g. **/my.war.
      3. Build job #2 fails with this error:
        Unable to access upstream artifacts area D:\jenkins\jobs\job1\modules\my.package$myapp\builds\510\archive. Does source project archive artifacts?
        ERROR: Unable to find a build for artifact copy from: JOB1

      Work-around:
      In job #2, set "Which build" to "Specified by permalink". Set permalink to "lastSuccessfulBuild".

          [JENKINS-31563] Latest successful artifact cannot be copied from Maven build

          ritzmann created issue -
          ikedam made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166988 ] New: JNJira + In-Review [ 198083 ]
          Marat S made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          ikedam made changes -
          Link New: This issue duplicates JENKINS-22637 [ JENKINS-22637 ]
          ikedam made changes -
          Assignee New: ritzmann [ ritzmann ]
          Resolution New: Not A Defect [ 7 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          ikedam made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            ritzmann ritzmann
            ritzmann ritzmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: