Skip to content

Permit uploading artifacts for aborted builds#132

Open
wheelerlaw wants to merge 3 commits intojenkinsci:masterfrom
wheelerlaw:permit_uploading_for_aborted_builds
Open

Permit uploading artifacts for aborted builds#132
wheelerlaw wants to merge 3 commits intojenkinsci:masterfrom
wheelerlaw:permit_uploading_for_aborted_builds

Conversation

@wheelerlaw
Copy link
Copy Markdown

Right now there is a configuration option for overriding the default behavior that prevents uploading artifacts when the build fails. However nonesuch option exists for overriding the same behavior preventing uploading artifacts for aborted builds.

This adds that option so that for aborted builds artifacts can be pushed to S3.

/**
* Do not publish the artifacts when build is aborted
*/
public boolean noUploadOnAborted;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To the best of my understanding, this needs to be true in order to preserve the backwards compatibility. However, existing configurations will be migrated so this gets set to false (default value for boolean) causing it to change semantics.

Better use Boolean here and do the null -> true conversion in readResolve: https://wiki.jenkins.io/display/JENKINS/Hint+on+retaining+backward+compatibility#Hintonretainingbackwardcompatibility-Scenario:Addinganewfield

Copy link
Copy Markdown
Author

@wheelerlaw wheelerlaw Aug 11, 2020

Choose a reason for hiding this comment

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

Just made those changes. Let me know what you think

@wheelerlaw
Copy link
Copy Markdown
Author

wheelerlaw commented Sep 3, 2020

Any update on getting this merged?

@wheelerlaw
Copy link
Copy Markdown
Author

@olivergondza bump

@lslebodn
Copy link
Copy Markdown

@daniel-beck @Jimilian @varyvol

Could you help merging/review?

@olivergondza
Copy link
Copy Markdown
Member

@varyvol, can you please take a look? Thanks!

@lslebodn
Copy link
Copy Markdown

@varyvol Would you mind to check the PR ?

@lslebodn
Copy link
Copy Markdown

@alecharp I can see you did latest commits in the repository.
Would you be so kind and could you review the patch?

@wheelerlaw
Copy link
Copy Markdown
Author

@alecharp @olivergondza bumping this again because we are still in need of this functionality

@lslebodn
Copy link
Copy Markdown

lslebodn commented Nov 5, 2021

@rsandell would you mind to review the changes?
It would be great to have it in the next release 0.12.x

@reecemjones15
Copy link
Copy Markdown

Can we revive this PR? This would be super helpful for us.

@bdschultzAU
Copy link
Copy Markdown

same. We need to send files to s3 in an aborted build. If this isn't going to be looked at, we need to write new code using the aws cli

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.

5 participants