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

Allow artifact archiver to search outside of workspace for artifacts

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • core, other
    • None
    • Platform: All, OS: All

      We have legacy non-Java build scripts that we'd like to invoke from Hudson
      free-form projects. Some of these scripts will put build results in an absolute
      location, ignoring the Hudson workspace directory.

      It would be nice if the Archive artifacts post-build step can accept an
      alternate root location to start searching for artifacts from so that the
      results from these scripts can be archived.

          [JENKINS-2644] Allow artifact archiver to search outside of workspace for artifacts

          Garen Parham added a comment - - edited

          Without this feature, I'm stuck between a rock and a hard place in Jenkins: using a dynamic view via ClearCase, it appears to be impossible to both (1) ensure the view is started (and any desired vobs mounted) before the job executes and (2) archive any artifacts.

          (1) Has other issues already filed for it, but to solve it currently I have to use an upstream job that gets started by the parameterized-trigger plugin. This also means that the "real" job of interest executes until it gets to the "trigger/call builds on other projects", and executes the upstream job, at which point it has already tried to access the custom workspace.

          For (2) it of course does work if I use a custom workspace if the desired view already exists and has a valid path before the job starts, but if it doesn't then fails.

          Garen Parham added a comment - - edited Without this feature, I'm stuck between a rock and a hard place in Jenkins: using a dynamic view via ClearCase, it appears to be impossible to both (1) ensure the view is started (and any desired vobs mounted) before the job executes and (2) archive any artifacts. (1) Has other issues already filed for it, but to solve it currently I have to use an upstream job that gets started by the parameterized-trigger plugin. This also means that the "real" job of interest executes until it gets to the "trigger/call builds on other projects", and executes the upstream job, at which point it has already tried to access the custom workspace. For (2) it of course does work if I use a custom workspace if the desired view already exists and has a valid path before the job starts, but if it doesn't then fails.

          Jesse Glick added a comment -

          Either add a shell build step to copy desired files into the workspace, or write a simple plugin to archive artifacts from other locations (integrating with JENKINS-17236 when available).

          Jesse Glick added a comment - Either add a shell build step to copy desired files into the workspace, or write a simple plugin to archive artifacts from other locations (integrating with JENKINS-17236 when available).

            Unassigned Unassigned
            dty Dean Yu
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: