timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-55914] archived artifacts cannot be navigated to in subfolders #4238

Open timja opened 5 years ago

timja commented 5 years ago

If some of archived artifacts are located in subfolders they cannot be navigated to in the "Build Artifacts" view: the web browser gets a timeout.

Steps to reproduce:

1. create artifacts, some of them in subfolders. e.g.:

sh "mkdir subdir"
sh "echo 'bla' > file.txt"
sh "echo 'bla' > subdir/file_in_folder.txt"

2. archive artifacts, e.g.:

archiveArtifacts '**/*.*'

3. navigate to the "Build Artifacts" page, e.g. /job/test/4/artifact/

4. click on the link "subdir"

Webbrowser is trying to connect and runs to a timeout.

I guess the is a missing "/" in the link of "subdir":

is: "/job/test/4/artifact/subdir"

woud work:  "/job/test/4/artifact/subdir/"


Originally reported by alexejpissarev, imported from: archived artifacts cannot be navigated to in subfolders
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 5 years ago

alexejpissarev:

What works is download of all artifacts via "(all files in zip)": the created and downloaded zip archive contains all artifacts in their structure - with the subfolder "subdir" in this example.

I checked the issue in an older jenkins instance (Jenkins ver. 2.152): the same behaviour.