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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-49322] Add an optional prefix parameter to artifact archiver #3284
Conversation
- add targetDirectory parameter for the archive
Not true: Actually this allows configuring where on the Jenkins master stuff gets archived. |
* @throws IOException if transfer or copying failed in any way | ||
* @throws InterruptedException if transfer was interrupted | ||
* @see ArtifactArchiver#perform(Run, FilePath, Launcher, TaskListener) | ||
*/ | ||
public abstract void archive(FilePath workspace, Launcher launcher, BuildListener listener, Map<String,String> artifacts) throws IOException, InterruptedException; | ||
public abstract void archive(FilePath workspace, Launcher launcher, BuildListener listener, Map<String,String> artifacts, String targetDirectory) throws IOException, InterruptedException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change breaking API compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniel-beck I agree. Should I add another method signature or find antoher way that avoid modifying the API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Add another method with more arguments, and invoke that one from this one with whatever is the "default" argument.
This is conflicted, has a change request from Daniel, and last comment was 1+ year ago. @segalaj do you plan to get back to this? No worries if not, this happens :). Just trying to push open PRs to completion. I will propose this for closing and will close it in the next days if the status doesn't change. Thanks! |
@batmat thanks for your comment, not sure I'll come back on this. I was expecting an answer to my last comment to continue. |
Sorry about that, I missed your response. |
@segalaj Daniel was able to answer in #3284 (comment). Sorry again for the miss. Do you think you want to keep this open, so you can finalize it, or you'd prefer to close it even temporarily (and we can reopen anytime you want to get back to it)? Thank you very much and sorry again. |
Given this PR is conflicted, and I didn't get answer from my last comment 11 days, I am going to close it. Please feel free to comment so we reopen this PR anytime once/if you are available again. Or filing a new PR depending on your preference. Thanks a lot. |
Add targetDirectory parameter for the artifact archiver
No test added, I can add some if needed.
See JENKINS-49322.
Proposed changelog entries
Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
no idea, sorry 馃槈