Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all the glob formats for the download step #109

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

v1v
Copy link
Member

@v1v v1v commented May 4, 2020

Closes #45

### What

Add support for the multiple wildcards, aka using Glob format for the download step

Why

Missing functionality to download subfolders and nested files/folders

Tasks

  • Implementation
  • UTs
  • ITs (debugging what's wrong in the CI as the execution of them with mvn hpi:run and manually created seems to works as expected.

@v1v v1v marked this pull request as draft May 7, 2020 20:52
@v1v v1v force-pushed the feature/wildcard-download-support branch from 80f0fdf to b2f8571 Compare May 13, 2020 08:11
@@ -21,7 +21,8 @@ pipeline {
steps{
step([$class: 'DownloadStep', credentialsId: env
.CREDENTIALS_ID, bucketUri: "gs://${env.BUCKET}/${env.PATTERN}",
localDirectory: "${env.DIR}/**/*"])
localDirectory: "${env.DIR}"])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localDirectory requires path relative to the workspace, so wildcards are treated as folders though.

Comment on lines +84 to +85
VirtualFile archivedFile = run.getArtifactManager().root().child("folder/foo.txt");
assertTrue(archivedFile.exists());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +85 to +86
VirtualFile archivedFile = run.getArtifactManager().root().child(pattern);
assertTrue(archivedFile.exists());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

No way to download everything including subfolders into workspace
1 participant