jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-62495] Artifact saving should follow symlink and save the target, optionnally with the symlink name.

Aperta
#508 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:major resolution:unresolved
Lingua principale
Java
Stelle
73
Fork
129
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When trying to save some generated files as artifacts , I can easily list the agnostic symlinks created (in my case, by bitbake), and give this list to the artifact step, while the target files have some changing parts depending on the build date or environment; or anything else.

But the target files are not saved. So, I need to add some extra code, in order to get each target file from each symlink in order to forge the list of files that will be saved.

It would be very user-friendly to have two options :



  • Follow symlink (and save only target, i.e. file with real content)

  • Name saved files with the symlink name rather than the target name

And I think that the first option should be set to true as default value, as it is not really interesting to save a symlink alone !

By the way, the artifact saving behavior should be to follow symlink. And the option should be to save either both symlink and target or target only.

---
Originally reported by jlpinardon, imported from: Artifact saving should follow symlink and save the target, optionnally with the symlink name.


  • status: Open
  • priority: Major
  • component(s): workflow-basic-steps-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251215-220547

Raw content of original issue

When trying to save some generated files as artifacts , I can easily list the agnostic symlinks created (in my case, by bitbake), and give this list to the artifact step, while the target files have some changing parts depending on the build date or environment; or anything else.
But the target files are not saved. So, I need to add some extra code, in order to get each target file from each symlink in order to forge the list of files that will be saved.

It would be very user-friendly to have two options :



  • Follow symlink (and save only target, i.e. file with real content)

  • Name saved files with the symlink name rather than the target name

And I think that the first option should be set to true as default value, as it is not really interesting to save a symlink alone !

By the way, the artifact saving behavior should be to follow symlink. And the option should be to save either both symlink and target or target only.

environment

```
Jenkins 2.222.3

Linux OS
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.