Absolute paths in the zip file #1
Labels
No Label
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/Gitea-auto-release#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@schatz reported that the zip file created using a this script contains absolute paths that, when run in the context of the jenkins pipeline, will be relative to the jenkins worker filesystem.
It would be more convenient to create the zip file using relaive paths instead.
What do you think?
we can pass the build path as external args for the script so you che use ${pwd}
Basically, the problem is that when creating the release from Jenkins, the resulted
release.tar.gz
contains all folder/subfolder names till thebuild/
directory.Check the attached image.
Probably, it would more convenient to include only the contents of the
build/
directory.I would consider this a blocker. The release packages for the documentation should definitely not depend on the build location - the paths inside should be relative to the
build
directory as Serafeim says.This should be a simple change to the way
tar
is used in the script if I'm not mistaken.@schatz could you test making a new release using this fixed version of the script?
Yes, this is a new release: https://code-repo.d4science.org/schatz/openaire-graph-docs/releases/tag/1.2
This seems to be resolved now, thanks!