Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Remote template resolution attempts to use folders in the parent directroy #129

Open
dtyler opened this issue Dec 8, 2017 · 0 comments
Open

Comments

@dtyler
Copy link
Contributor

dtyler commented Dec 8, 2017

When attempting to resolve a remote dependency for templates, the pipeline builder searches the expanded remote archive for the specified folder to load. The search looks at all directories in the directory where the archive was expanded including the reference to the parent directory: '..'.

Because of this behavior, the if the current working directory where the Jenkins Pipeline Builder is run contains a folder with the same name as the desired folder, then this folder is incorrectly targeted for loading.

Scenario:
Project file specifies loading remote templates and the specified folder name to load matches that of an other folder in the current working directory.

Expected behavior:
JPB should find and load the specified folder from the remote archive and the template therein.

Current behavior:
JPB find the folder in the current working directory (outside the expanded archive) and attempts to load a template from there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant