jenkinsci / jenkinsci/workflow-basic-steps-plugin

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

Open
#508 1 comment 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.