-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# winget-dsc pipeline to publish module artifacts | ||
name: '$(Build.DefinitionName)-$(Build.DefinitionVersion)-$(Date:yyyyMMdd)-$(Rev:r)' | ||
|
||
trigger: none | ||
|
||
parameters: # parameters are shown up in ADO UI in a build queue time | ||
|
||
- name: 'Microsoft.Windows.Developer' | ||
displayName: 'Publish Microsoft.Windows.Developer to PSGallery' | ||
type: boolean | ||
default: false | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
type: git | ||
ref: refs/heads/main | ||
- repository: 1ESPipelineTemplates | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates | ||
parameters: | ||
pool: | ||
name: Azure-Pipelines-1ESPT-ExDShared | ||
image: windows-2022 | ||
os: windows | ||
customBuildTags: | ||
- ES365AIMigrationTooling | ||
settings: | ||
skipBuildTagsForGitHubPullRequests: true | ||
|
||
stages: | ||
- stage: Manual Approval | ||
displayName: Manual Approval | ||
dependsOn: [] | ||
jobs: | ||
- ${{ if eq(parameters.Microsoft.Windows.Developer, false) }}: | ||
- template: /azure-pipelines/templates/manual-trigger.yml@self | ||
parameters: | ||
publishTarget: Microsoft.Windows.Developer PSGallery | ||
- template: /azure-pipelines/templates/jobs/publish/store.yml@self | ||
parameters: | ||
runImmediately: ${{ parameters.msstore }} | ||
- stage: Publish pipeline artifact | ||
jobs: | ||
- job: Publish pipeline artifact | ||
displayName: 'Publish Microsoft.Windows.Developer' | ||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
displayName: Publish ${{ parameters.buildName }} | ||
targetPath: $(Build.SourcesDirectory)\resources\Microsoft.Windows.Developer\ | ||
artifactName: Microsoft.Windows.Developer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
parameters: | ||
- name: publishTarget | ||
type: string | ||
|
||
jobs: | ||
- job: ManualTrigger | ||
displayName: Manual trigger for ${{ parameters.publishTarget }} | ||
pool: server | ||
timeoutInMinutes: 86400 # job times out in 60 days | ||
steps: | ||
- task: ManualValidation@0 | ||
timeoutInMinutes: 86400 # task times out in 60 days | ||
inputs: | ||
notifyUsers: '' | ||
instructions: Approve this step to proceed with publishing for ${{ parameters.publishTarget }} |
3e465f9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@check-spelling-bot Report
🔴 Please review
See the 📜action log or 📝 job summary for details.
Unrecognized words (1)
msstore
These words are not needed and should be removed
cspell LASTEXITCODE NUnit Toolpackage WorkaroundTo accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands
... in a clone of the [email protected]:microsoft/winget-dsc.git repository
on the
createPublishPipeline
branch (ℹ️ how do I use this?):If the flagged items are 🤯 false positives
If items relate to a ...
binary file (or some other file you wouldn't want to check at all).
Please add a file path to the
excludes.txt
file matching the containing file.File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
^
refers to the file's path from the root of the repository, so^README\.md$
would exclude README.md (on whichever branch you're using).well-formed pattern.
If you can write a pattern that would match it,
try adding it to the
patterns.txt
file.Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.