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

Archive artifacts cannot start with "./", but "Parameters from properties file" can (dot slash)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      We had a build job that passed info to another build job. This file was not being archived, but I wanted to see its contents to determine where an issue had happened. So I copied the line from the "Parameters from properties file" (in "Trigger parameterized build on other projects"), and pasted it in "Files to archive".

      When I then ran a build, it failed with this somewhat amusing message:

      --------------------------------------------------
      Archiving artifacts
      ERROR: No artifacts found that match the file pattern ".\depot\tokyo\upside\CI\AutoDeploy\data\ATF_data.txt". Configuration error?
      ERROR: ‘.\depot\tokyo\upside\CI\AutoDeploy\data\ATF_data.txt’ doesn’t match anything, but ‘depot\tokyo\upside\CI\AutoDeploy\data\ATF_data.txt’ does. Perhaps that’s what you mean?
      Build step 'Archive the artifacts' changed build result to FAILURE
      --------------------------------------------------

      It looks like the way that it handles the leading ".\" may be different from how the Parameterized Trigger Plugin does.

      Adding "dot slash" in summary and description, as it seems I cannot search for ".\" (I had tried "dot slash" but didn't see anything relevant, so if someone else does the same actions, they'll find this one).

            Unassigned Unassigned
            kbeal Ken Beal
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: