jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-62495] Artifact saving should follow symlink and save the target, optionnally with the symlink name.
- Lenguaje dominante
- Java
- Estrellas
- 73
- Forks
- 129
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
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
```
Guía de contribución
Línea de trabajo
Comienza en el paso de guardado de artefactos de workflow-basic-steps-plugin y rastrea cómo la lista de archivos proporcionada gestiona los enlaces simbólicos. Define e implementa el comportamiento solicitado para seguir enlaces simbólicos, incluido si se debe conservar el nombre del enlace simbólico o el nombre del destino, y luego verifica que el contenido del destino se guarde según la opción seleccionada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- ci-cd, devops
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100