Absolute paths in the zip file #1

Closed
opened 2022-12-19 12:15:15 +01:00 by claudio.atzori · 5 comments

@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?

@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?
sandro.labruzzo was assigned by claudio.atzori 2022-12-19 12:15:15 +01:00

we can pass the build path as external args for the script so you che use ${pwd}

we can pass the build path as external args for the script so you che use ${pwd}
Member

Basically, the problem is that when creating the release from Jenkins, the resulted release.tar.gz contains all folder/subfolder names till the build/ directory.
Check the attached image.
Probably, it would more convenient to include only the contents of the build/ directory.

Basically, the problem is that when creating the release from Jenkins, the resulted `release.tar.gz` contains all folder/subfolder names till the `build/` 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.

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?

@schatz could you test making a new release using this fixed version of the script?
Member

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!

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!
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: D-Net/Gitea-auto-release#1
No description provided.