Skip to content

Conversation

@stevencl840
Copy link

@stevencl840stevencl840 commented Dec 12, 2025

Context 🌆

Our build pipeline was broken, and we didn't realize it until we needed to make a change to this library. We want to initiate nightly builds so we can detect a broken pipeline early and fix it before it becomes a problem. We also could not publish from our branch after the first build of that branch.

Details 🔍

In order to create branch builds and nightly builds, we need to override the MinVerDefaultPreReleaseIdentifiers. The documentation implies we can do this with an environment variable. Unfortunately, when I do this, the MinVerDefaultPreReleaseIdentifiers is ignored completely. Creating a conditional property group in the csproj file works reliably and allows us to maintain a fairly clean CI process.

The alternative was to set MINVERVERSIONOVERRIDE, but this required us to derive the current version number, which was generally more complicated.

I would also like to ignore the height value when creating version numbers. This value is not calculated correctly for GitHub PRs, which is why we need to do this customer naming for our branch builds. If I set MinVerIgnoreHeight in the csproj file it completely ignored the MinVerDefaultPreReleaseIdentifiers. As this value can only change by pushing a new tag or merging into master, it is acceptable.

Branch build

chrome_fzofvT9mSS

Nightly build

chrome_Yj8iPzkPhS

With ignore height turn on in csproj

image

[sc-131121]

@stevencl840stevencl840 changed the base branch from sjc/update-build-process to octopus/masterDecember 18, 2025 02:34
@stevencl840stevencl840force-pushed the sjc/add-nightly-build branch 2 times, most recently from 4ba7f7c to ee253e8CompareDecember 18, 2025 05:11
@stevencl840stevencl840 requested a review from a teamDecember 18, 2025 21:45
@stevencl840stevencl840 marked this pull request as ready for review December 18, 2025 21:45
Sign up for freeto 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.

1 participant

@stevencl840