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

Latest successful artifact cannot be copied from Maven build

XMLWordPrintable

    • 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".

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

              Created:
              Updated:
              Resolved: