-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
This will create stuff like: `MyLib.0.1.0-CI0000798.nupkg` (from master) `MyLib.0.1.0-pr17-0000798.nupkg` (from PRs)
SET X=%1 | ||
SET BLD=000000%X% | ||
SET BLD=%BLD:~-7% | ||
if [%2]==[] (SET V=CI%BLD%) else (SET V=pr%2-%BLD%) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking more and more like a job for a build.proj ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local build is still reporting
C:\code\CallPolly\src\CallPolly\obj\Release\netstandard2.0\CallPolly.AssemblyInfo.fs(15,69): warning FS2003: The attribute System.Reflection.AssemblyInformationalVersionAttribute specified version '0.0.2-CI000000', but this value is invalid and has been ignored [C:\code\CallPolly\src\CallPolly\CallPolly.fsproj]
Feel free to merge, but my dream is to have a build.proj with no warnings
also this needs to happen in the upstream Jet.JsonNet.Converters too
That's an F# bug, apparently it's already fixed but still not shipped: dotnet/fsharp#4822 |
Ah, good to know - so, do you want to port it to a build.proj are are we going to ? |
Merging this for now. I'll keep improving the build infrastructure in separate PRs. |
I shaved this off master as it failed there (and when I put my thing on top). |
What's the failure? I have a build.proj already. See the one in XRay. |
About pull request id - see the master commit log. Unfortunately the removal of your commit did not help as the build config cant cope with that (we also need to fix that - I'll leave it the way it was now) |
or is our build numbering predicated on the commit index on a branch? (for early days of a project I tend to do force pushes to keep history neat rather than doing formal revert PRs and tiny fixup PRs) |
link to error log on master https://jet-tfs.visualstudio.com/Jet/_build/results?buildId=70166&view=logs |
Weird, I'll have a look shortly, but it seems to be a problem in the pipelines rather than the build script. That's why removing this commit didn't solve it. |
You sure ? the error on my commit and your commit was similar about build numbers. When I pushed without it, it was a detached head error - i.e. it did not get as far as runningth build.cmd |
The problem was that Azure Pipelines was not expanding uninitialized variables. |
This will create stuff like:
MyLib.0.1.0-CI0000798.nupkg
(from master)MyLib.0.1.0-pr17-0000798.nupkg
(from PRs)