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

Notifications

Announcements

No record found.

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,160 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,710 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,361 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,160 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans