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

Add automatic push to ADO step when signing #1061

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

davidmrdavid
Copy link
Collaborator

Another step in the effort to minimize our release burden. This PR makes it so that every time a package is signed, it is also pushed to ADO. In most scenarios, if we sign a package, we want to share them with another user, in which case ADO is the preferred mechanism. This prevents us from having to manually kick off the "release to ADO" feed, it will run automatically instead.

@davidmrdavid davidmrdavid marked this pull request as draft April 5, 2024 17:31
@davidmrdavid
Copy link
Collaborator Author

back to draft mode to review some issues

@davidmrdavid davidmrdavid marked this pull request as ready for review April 5, 2024 18:25
@davidmrdavid
Copy link
Collaborator Author

I have confirmed this works, so back to "ready for review"

Copy link
Collaborator

@bachuv bachuv left a comment

Choose a reason for hiding this comment

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

Thanks for adding this step in the pipeline!

packagesToPush: '$(build.artifactStagingDirectory)/*.nupkg'
publishVstsFeed: '734e7913-2fab-4624-a174-bc57fe96f95d/d55248c1-5b53-411f-bfe7-73efc9e540d1'
allowPackageConflicts: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this mean? Why are we allowing package conflicts?

@jviau
Copy link
Collaborator

jviau commented Apr 8, 2024

My personal opinion is that I don't like pushing to nuget feeds as part of a build. I feel the act of releasing, even internally, should be a conscious decision beyond queueing a build. This is primarily because of how permanent nuget releases are. Once a version is published the most you can do is unpublish/delete it. You cannot reuse that version number. Having builds auto pushing to an internal feed may lead to accidentally pushing packages that are not quite ready and locking out that version number from a good package.

In that vein, is there anything wrong with manually queueing a release from a build? If so, can we address those issues via improving the release def itself?

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.

None yet

3 participants