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

fix: update upload artifact to deployment script to use byte stream #2537

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

grace-rehn
Copy link
Contributor

The script to upload an artifact to an existing deployment prepends extra headers in the file content when uploading to Octopus.

This PR updates the script to use a byte stream instead of streaming as multipart form data. This ensures that the header content is not added to the artifact.

Fixes #2399

Tested using artifact.csv

Before

Running the original script and downloading the artifact from Octopus:

Screenshot 2024-10-18 at 2 05 59 PM

After

Running the new script and downloading the artifact from Octopus:

Screenshot 2024-10-18 at 2 06 29 PM

Copy link
Contributor

@IsaacCalligeros95 IsaacCalligeros95 left a comment

Choose a reason for hiding this comment

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

LGTM

@grace-rehn grace-rehn merged commit 0393993 into main Oct 18, 2024
4 checks passed
@grace-rehn grace-rehn deleted the grace/fix-upload-artifact-script branch October 18, 2024 04:37
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.

Upload artifact to existing deployment includes headers in file content
3 participants