web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Build number when build pipeline

(0) ShareShare
ReportReport
Posted on by 4,131

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 have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    I assume you want to update model version during build. Check this article: docs.microsoft.com/.../version-models-build

  • Suggested answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    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))'

  • Verified answer
    WillWU Profile Picture
    22,363 on at

    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

  • Yuji Profile Picture
    4,131 on at

    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?

  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Hi Yuji,

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans