Notifications
Announcements
No record found.
Hi,
I followed the article below to set up the build definition:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/perf-test/continuous-build-test-automation
But where can I set up the build #?
Thanks in advance,
I assume you want to update model version during build. Check this article: docs.microsoft.com/.../version-models-build
when you go to build pipeline and see YAML , you can see build number over there.
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/run-number?view=azure-devops&tabs=yaml
arguments: '-BuildPackagePath "$(Agent.BuildDirectory)\Packages" -BuildBinPath "$(Agent.BuildDirectory)\Bin" -BuildMetadataPath "$(Build.SourcesDirectory)\Metadata" -BuildVersion "$(Build.BuildNumber)" -NoRuntime:([bool]$(SkipRuntimePackageGeneration)) -NoSource:([bool]$(SkipSourcePackageGeneration)) -Verbose -ExclusionList "$(PackagingExclusions)" -IncludeBinaries:([bool]$(IncludeBinariesInRuntimePackage))'
Hi Yuji,
Can I understand that you want to customize the build number in Azure Devops, the build number will automatically generated based on date, and you can use special logging commands to modify it.
Please refer to the following link:
medium.com/.../overwrite-build-number-for-your-azure-pipeline-71fd95043f12
If I would like to set my model to 1.1.#.0 (incremental on the #, e.g. 1,2,....10). How can I do that?
I trust you already checked the documentation that I linked.
Anyway from that documentation you will find out that one task in the build pipeline is responsible for setting the model versions. This task is called "Set Model Versions". Take a look at it. It calls a PowerShell script on the build VM. If you want to change the logic of this task, simply replace that script with your own.
Your script should look for the third digit in the model version, and increment it by one.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader