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

NuGet Validation fails when a pipeline doesn't produce any nuget packages #14594

Open
1 of 2 tasks
ericstj opened this issue Mar 14, 2024 · 0 comments
Open
1 of 2 tasks
Labels
Ops - Service Maintenance Used to track issues related to maintaining the services .NET Eng Supports

Comments

@ericstj
Copy link
Member

ericstj commented Mar 14, 2024

  • This issue is blocking
  • This issue is causing unreasonable pain

We have a repo that needs to disable packages occasionally. When it does so there is no way for the pipeline to disable the NuGet Validation. It fails because it attempts to download

The only way to disable this step is through the enableNugetValidation pipeline parameter. AFAICT we cannot set this dynamically based on the source in the repo, so developers would need to "remember" to enable and disable this parameter.

Ideally this step should automatically skip if there are no packages to publish. I tried to do this but couldn't get the yml authoring correct. My non-working attempt is here: https://dev.azure.com/dnceng/internal/_git/dotnet-maintenance-packages/commit/aa4716ed8a6a16b11e9680e26a5b134a46a2386f?refName=refs%2Fheads%2FconditionPackageValidation
I couldn't get the plumbing of the variable correct (and it also needs to be set in the true case).

It would be best if arcade would support this.

@missymessa missymessa added the Ops - Service Maintenance Used to track issues related to maintaining the services .NET Eng Supports label Mar 21, 2024
@garath garath added the Ops - P2 Operations task, priority 2 label Mar 25, 2024
@garath garath removed the Ops - P2 Operations task, priority 2 label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ops - Service Maintenance Used to track issues related to maintaining the services .NET Eng Supports
Projects
None yet
Development

No branches or pull requests

3 participants