Skip to content

Commit 213931c

Browse files
authored
Update pipeline files (#483)
1 parent b76b600 commit 213931c

File tree

12 files changed

+81
-86
lines changed

12 files changed

+81
-86
lines changed

.gitattributes

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
# Ensure any exe files are treated as binary
99
*.exe binary
1010
*.jpg binary
11-
12-
# Allow Excel files in examples to be saved as binary files
1311
*.xl* binary
14-
15-
# Allow test .PFX files to be saved as binary files
1612
*.pfx binary
17-
1813
*.png binary
1914
*.dll binary
2015
*.so binary

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
<!--
2-
Thanks for submitting a Pull Request (PR) to this project.
3-
Your contribution to this project is greatly appreciated!
2+
Thanks for submitting a Pull Request (PR) to this project. Your contribution to this project
3+
is greatly appreciated!
44
5-
Please prefix the PR title with the resource name,
6-
e.g. 'ResourceName: My short description'.
7-
If this is a breaking change, then also prefix the PR title
8-
with 'BREAKING CHANGE:',
5+
Please prefix the PR title with the resource name, e.g. 'ResourceName: My short description'.
6+
If this is a breaking change, then also prefix the PR title with 'BREAKING CHANGE:',
97
e.g. 'BREAKING CHANGE: ResourceName: My short description'.
108
11-
You may remove this comment block, and the other comment blocks, but please
12-
keep the headers and the task list.
9+
You may remove this comment block, and the other comment blocks, but please keep the headers
10+
and the task list.
1311
-->
1412

1513
#### Pull Request (PR) description
1614

1715
<!--
18-
Replace this comment block with a description of your PR.
19-
Also, make sure you have updated the CHANGELOG.md, see the
20-
task list below. An entry in the CHANGELOG.md is mandatory
21-
for all PRs.
16+
Replace this comment block with a description of your PR. Also, make sure you have updated the
17+
CHANGELOG.md, see the task list below. An entry in the CHANGELOG.md is mandatory for all PRs.
2218
-->
2319

2420
#### This Pull Request (PR) fixes the following issues
2521

2622
<!--
27-
If this PR does not fix an open issue, replace this comment block with None.
28-
If this PR resolves one or more open issues, replace this comment block with
29-
a list of the issues using a GitHub closing keyword, e.g.:
23+
If this PR does not fix an open issue, replace this comment block with None. If this PR
24+
resolves one or more open issues, replace this comment block with a list of the issues using
25+
a GitHub closing keyword, e.g.:
3026
3127
- Fixes #123
3228
- Fixes #124
@@ -35,21 +31,19 @@
3531
#### Task list
3632

3733
<!--
38-
To aid community reviewers in reviewing and merging your PR, please take
39-
the time to run through the below checklist and make sure your PR has
40-
everything updated as required.
34+
To aid community reviewers in reviewing and merging your PR, please take the time to run
35+
through the below checklist and make sure your PR has everything updated as required.
4136
42-
Change to [x] for each task in the task list that applies to your PR.
43-
For those task that don't apply to you PR, leave those as is.
37+
Change to [x] for each task in the task list that applies to your PR. For those task that
38+
don't apply to you PR, leave those as is.
4439
-->
4540

46-
- [ ] Added an entry to the change log under the Unreleased section of the
47-
file CHANGELOG.md. Entry should say what was changed and how that
48-
affects users (if applicable), and reference the issue being resolved
49-
(if applicable).
41+
- [ ] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
42+
Entry should say what was changed and how that affects users (if applicable), and
43+
reference the issue being resolved (if applicable).
5044
- [ ] Resource documentation added/updated in README.md.
51-
- [ ] Resource parameter descriptions added/updated in README.md, schema.mof
52-
and comment-based help.
45+
- [ ] Resource parameter descriptions added/updated in README.md, schema.mof and comment-based
46+
help.
5347
- [ ] Comment-based help added/updated.
5448
- [ ] Localization strings added/updated in all localization files as appropriate.
5549
- [ ] Examples appropriately added/updated.

.gitignore

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
output/
2+
3+
**.bak
4+
*.local.*
5+
!**/README.md
6+
.kitchen/
7+
8+
*.nupkg
9+
*.suo
10+
*.user
11+
*.coverage
112
.vs
213
.vscode
3-
output/
14+
.psproj
15+
.sln
16+
markdownissues.txt
17+
node_modules
18+
package-lock.json

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# Change log for xExchange
1+
# Changelog for xExchange
22

33
The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
77

8+
### Changed
9+
10+
- xExchange
11+
- Update the pipeline files from the latest template in Sampler.
12+
813
## [1.33.0] - 2021-10-31
914

1015
### Changed

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mode: ContinuousDelivery
2-
next-version: 1.31.0
2+
next-version: 0.0.1
33
major-version-bump-message: '(breaking\schange|breaking|major)\b'
44
minor-version-bump-message: '(adds?|features?|minor)\b'
55
patch-version-bump-message: '\s?(fix|patch)'

README.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,40 +29,10 @@ Please check out common DSC Community [contributing guidelines](https://dsccommu
2929

3030
A full list of changes in each version can be found in the [change log](CHANGELOG.md).
3131

32-
## Installation
32+
## Documentation
3333

34-
To manually install the module,
35-
download the source code and unzip the contents
36-
of the '\Modules\xExchange' directory to the
37-
'\$env:ProgramFiles\WindowsPowerShell\Modules' folder.
38-
39-
To install from the PowerShell gallery using PowerShellGet (in PowerShell 5.0)
40-
run the following command:
41-
42-
```powershell
43-
Find-Module -Name xExchange -Repository PSGallery | Install-Module
44-
```
45-
46-
To confirm installation, run the below command and ensure you see the SQL Server
47-
DSC resources available:
48-
49-
```powershell
50-
Get-DscResource -Module xExchange
51-
```
52-
53-
## Requirements
54-
55-
The minimum Windows Management Framework (PowerShell) version required is 4.0,
56-
which ships with Windows Server 2012 and Windows Server 2012 R2, but can also
57-
be installed on Windows 2008 R2 (the minimum supported OS version for Exchange
58-
Server 2013).
59-
60-
Note that while the xExchange module may work with newer releases of
61-
PowerShell, the Microsoft Exchange Product Group does not support running
62-
Microsoft Exchange Server with versions of PowerShell newer than the one that
63-
shipped with the Windows Server version that Exchange is installed on. See the
64-
**Windows PowerShell** section of the [Exchange Server Supportability Matrix](<https://technet.microsoft.com/en-us/library/ff728623(v=exchg.160).aspx>)
65-
for more information.
34+
The documentation can be found in the [xExchange Wiki](https://github.com/dsccommunity/xExchange/wiki).
35+
The resource documentation can be found below.
6636

6737
## Examples
6838

Resolve-Dependency.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,6 @@ try
388388
{
389389
Write-Verbose "PowerShell-Yaml is already available"
390390
}
391-
392-
Write-Progress -Activity 'Bootstrap:' -PercentComplete 88 -CurrentOperation 'Importing PowerShell module PowerShell-Yaml'
393-
394-
Import-Module -Name 'PowerShell-Yaml' -ErrorAction 'Stop'
395391
}
396392

397393
Write-Progress -Activity 'Bootstrap:' -PercentComplete 90 -CurrentOperation 'Invoke PSDepend'

azure-pipelines.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ stages:
2525
- job: Package_Module
2626
displayName: 'Package Module'
2727
pool:
28-
vmImage: 'ubuntu 18.04'
28+
vmImage: 'ubuntu-latest'
2929
steps:
30-
- task: GitVersion@5
31-
name: gitVersion
32-
displayName: 'Evaluate Next Version'
33-
inputs:
34-
runtime: 'core'
35-
configFilePath: 'GitVersion.yml'
30+
- pwsh: |
31+
dotnet tool install --global GitVersion.Tool
32+
$gitVersionObject = dotnet-gitversion | ConvertFrom-Json
33+
$gitVersionObject.PSObject.Properties.ForEach{
34+
Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."
35+
Write-Host -Object "##vso[task.setvariable variable=$($_.Name);]$($_.Value)"
36+
}
37+
Write-Host -Object "##vso[build.updatebuildnumber]$($gitVersionObject.FullSemVer)"
38+
displayName: Calculate ModuleVersion (GitVersion)
3639
- task: PowerShell@2
3740
name: package
3841
displayName: 'Build & Package Module'
@@ -41,7 +44,7 @@ stages:
4144
arguments: '-ResolveDependency -tasks pack'
4245
pwsh: true
4346
env:
44-
ModuleVersion: $(gitVersion.NuGetVersionV2)
47+
ModuleVersion: $(NuGetVersionV2)
4548
- task: PublishPipelineArtifact@1
4649
displayName: 'Publish Build Artifact'
4750
inputs:
@@ -56,7 +59,7 @@ stages:
5659
- job: Test_HQRM
5760
displayName: 'HQRM'
5861
pool:
59-
vmImage: 'windows-2019'
62+
vmImage: 'windows-latest'
6063
timeoutInMinutes: 0
6164
steps:
6265
- task: DownloadPipelineArtifact@2
@@ -83,7 +86,7 @@ stages:
8386
- job: Test_Unit
8487
displayName: 'Unit'
8588
pool:
86-
vmImage: 'windows-2019'
89+
vmImage: 'windows-latest'
8790
timeoutInMinutes: 0
8891
steps:
8992
- task: DownloadPipelineArtifact@2
@@ -120,7 +123,7 @@ stages:
120123
displayName: 'Publish Code Coverage'
121124
dependsOn: Test_Unit
122125
pool:
123-
vmImage: 'ubuntu 18.04'
126+
vmImage: 'ubuntu-latest'
124127
timeoutInMinutes: 0
125128
steps:
126129
- pwsh: |
@@ -168,7 +171,7 @@ stages:
168171
- job: Deploy_Module
169172
displayName: 'Deploy Module'
170173
pool:
171-
vmImage: 'ubuntu 18.04'
174+
vmImage: 'ubuntu-latest'
172175
steps:
173176
- task: DownloadPipelineArtifact@2
174177
displayName: 'Download Pipeline Artifact'

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ Begin
466466
# The parameter has been explicitly used for calling the .build.ps1
467467
if ($MyInvocation.BoundParameters.ContainsKey($cmdParameter))
468468
{
469-
$paramValue = $MyInvocation.BoundParameters.ContainsKey($cmdParameter)
469+
$paramValue = $MyInvocation.BoundParameters.Item($cmdParameter)
470470

471471
Write-Debug " adding $cmdParameter :: $paramValue [from user-provided parameters to Build.ps1]"
472472

build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Encoding: UTF8
1111
VersionedOutputDirectory: true
1212

1313
####################################################
14-
# xExchange Pipeline Configuration #
14+
# Sampler Pipeline Configuration #
1515
####################################################
1616
BuildWorkflow:
1717
'.':
@@ -41,7 +41,6 @@ BuildWorkflow:
4141
- publish_module_to_gallery
4242
- Publish_Release_To_GitHub
4343
- Publish_GitHub_Wiki_Content
44-
- Create_ChangeLog_GitHub_PR
4544

4645
####################################################
4746
# PESTER Configuration #

0 commit comments

Comments
 (0)