Latest successful artifact cannot be copied from Maven build

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

            Assignee:
            ritzmann
            Reporter:
            ritzmann
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: