Skip to content

Commit

Permalink
Added 'BuildNumber' to 'DscTagging' configuration (#219)
Browse files Browse the repository at this point in the history
* Added 'BuildNumber'

* Added BuildNumber to test data
  • Loading branch information
raandree authored Nov 30, 2023
1 parent 36ee08c commit 069eab0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed bugs in 'DscTagging'
- Fixed bugs in 'DscTagging' and added parameter 'BuildNumber'.

## [0.9.0] - 2023-02-08

Expand Down
6 changes: 5 additions & 1 deletion source/DSCResources/DscTagging/DscTagging.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ configuration DscTagging {
[System.Version]
$Version,

[Parameter()]
[int]
$BuildNumber,

[Parameter(Mandatory = $true)]
[string]
$Environment,
Expand Down Expand Up @@ -85,7 +89,7 @@ configuration DscTagging {
{
Key = 'HKEY_LOCAL_MACHINE\SOFTWARE\DscTagging'
ValueName = 'BuildNumber'
ValueData = "$($env:BUILD_BUILDID)"
ValueData = $BuildNumber
ValueType = 'String'
Ensure = 'Present'
Force = $true
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/DSCResources/Assets/Config/DscTagging.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Version: 1.0.0
Environment: Dev
BuildNumber: 100
NodeVersion:
NodeRole: FileServer
DisableGitCommitId: false
Expand Down

0 comments on commit 069eab0

Please sign in to comment.