Skip to content

REVIT-220855: D4R CI/CD improvements — read version from AssemblySharedInfo.tt, add CONTENT_ONLY build counter#3310

Open
Fusneica-FlorentinCristian wants to merge 3 commits intomasterfrom
fusneif/REVIT-220855/improvements-to-ci-cd-dynamo-for-revit-pipeline
Open

REVIT-220855: D4R CI/CD improvements — read version from AssemblySharedInfo.tt, add CONTENT_ONLY build counter#3310
Fusneica-FlorentinCristian wants to merge 3 commits intomasterfrom
fusneif/REVIT-220855/improvements-to-ci-cd-dynamo-for-revit-pipeline

Conversation

@Fusneica-FlorentinCristian
Copy link
Copy Markdown
Collaborator

@Fusneica-FlorentinCristian Fusneica-FlorentinCristian commented Apr 6, 2026

Summary

Jenkinsfile now reads the deploy version from DynamoRevit/src/AssemblySharedInfoGenerator/AssemblySharedInfo.tt (parsing MajorVersion, MinorVersion, BuildNumber) instead of a hardcoded value. AssemblySharedInfo.tt is not modified — it remains the single source of truth controlled by developers.

A new CONTENT_ONLY boolean parameter is added:

  • false (default): deploy version matches the binary version from AssemblySharedInfo.tt exactly (e.g. 0.8.3)
  • true: build number is appended as a suffix (e.g. 0.8.3-42) for content-only deploys (samples, templates, node help files)

Changes

  • Jenkinsfile: added CONTENT_ONLY param, version read from AssemblySharedInfo.tt in Deploy stage and build display name

…ontent-only build counter

Update AssemblySharedInfo.tt in both repos to hold product version numbers
(D4R: 0.8.3, SC4D: 7.0.1) instead of the Revit-year-based 28.0.0.

Add CONTENT_ONLY build parameter to Jenkinsfile in D4RUtils and SC4D:
- false (default): package version matches binary version from AssemblySharedInfo.tt
  (D4R: Major.Minor.Patch, SC4D: Major.Minor.Patch.0)
- true: BUILD_NUMBER appended as a counter for content-only deploys
  (D4R: Major.Minor.Patch-N, SC4D: Major.Minor.Patch.N)

Remove hardcoded version strings; AssemblySharedInfo.tt is now the single
source of truth for both DLL assembly versions and package versions.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the version source-of-truth used by the AssemblySharedInfo T4 template so that the product/package version (0.8.3) is aligned with the generated assembly version components, supporting CI/CD version correlation for Dynamo for Revit.

Changes:

  • Updated MajorVersion, MinorVersion, and BuildNumber in AssemblySharedInfo.tt from the Revit-year-based 28.0.0 to product version 0.8.3.
  • Keeps assembly AssemblyVersion/AssemblyFileVersion generation driven by the same template-defined version fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@Mikhinja Mikhinja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it should be the other way around, the package build should be changed to follow this, do not change this version to match package version

@Fusneica-FlorentinCristian Fusneica-FlorentinCristian changed the title REVIT-220855: correlate package version with AssemblySharedInfo.tt, content-only build counter REVIT-220855: D4R CI/CD improvements — read version from AssemblySharedInfo.tt, add CONTENT_ONLY build counter Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants