-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Deploy Box Update #24632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Deploy Box Update #24632
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0481d2e
reverted one time changes
4f4a5ca
added ob_outputDirectory
16c1df7
added mscode variable group
ac046b6
forgot to move psm1 to ToolArtifact folder
ee82107
added pipeline name and passing toolartifact through context
6c2da06
added tools
6ef250b
PSPackagesOfficial
f9fb06b
removed tools clone
6a88faa
added uploading CL
d9f9133
verbose statements for release tag and release version
63d442f
trying to regerence variable with step name
49b89bf
checking REPOROOT
971312b
removed get child item
3e152ab
Deploy box update
55e0a7b
nuget template context pipeline name correction
e666368
changed other instances of releasetag
9b628e6
added -Verbose to Copy-Item
1ecbf1d
checkout task, instead of git clone
1215f84
Merge branch 'deployboxupdate' into rebuild/v7.5.99-rebuild.999
05aa6e1
changed to Build.SourcesDirectory
2360435
removed path specification
3aeba77
removed path
f3f601a
added tsa and credscan
9f9e680
not copying tools to artifacts
a75b16f
official and production
c72fd6f
Merge branch 'master' into deployboxupdate
TravisEz13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,75 @@ | ||
| jobs: | ||
| - job: SetTagAndTools | ||
| displayName: Set Tag and Tools | ||
| condition: succeeded() | ||
| pool: | ||
| type: windows | ||
| variables: | ||
| - group: 'mscodehub-code-read-akv' | ||
| - name: ob_outputDirectory | ||
| value: '$(Build.ArtifactStagingDirectory)/ONEBRANCH_ARTIFACT' | ||
| - name: ob_sdl_credscan_suppressionsFile | ||
| value: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json | ||
| - name: ob_sdl_tsa_configFile | ||
| value: $(Build.SourcesDirectory)\PowerShell\.config\tsaoptions.json | ||
| steps: | ||
| - template: release-SetReleaseTagandContainerName.yml@self | ||
|
|
||
| - checkout: self | ||
| clean: true | ||
| env: | ||
| ob_restore_phase: true | ||
|
|
||
| - checkout: PSInternalTools | ||
| clean: true | ||
| env: | ||
| ob_restore_phase: true | ||
|
|
||
| - pwsh: | | ||
| New-Item -ItemType Directory -Path '$(Pipeline.Workspace)/ToolArtifact' | ||
| Get-ChildItem -Path '$(Build.SourcesDirectory)/Internal-PowerShellTeam-Tools/Scripts' -Filter 'GitHubRelease.psm1' -ErrorAction SilentlyContinue | | ||
| Copy-Item -Destination '$(Pipeline.Workspace)/ToolArtifact' -Verbose | ||
| displayName: Move GitHub Tool | ||
|
|
||
| - task: onebranch.pipeline.signing@1 | ||
| displayName: Sign Tools | ||
| inputs: | ||
| command: 'sign' | ||
| signing_profile: internal_azure_service | ||
| files_to_sign: '*.ps1;*.psm1' | ||
| search_root: '$(Pipeline.Workspace)/ToolArtifact' | ||
|
|
||
| - pwsh: | | ||
| Write-Verbose -Verbose "Creating output directory for release tools: $(ob_outputDirectory)/ToolArtifact" | ||
| New-Item -Path $(ob_outputDirectory)/ToolArtifact -ItemType Directory -Force | ||
| Get-ChildItem -Path "$(Pipeline.Workspace)/ToolArtifact/*" -Recurse | | ||
| Copy-Item -Destination $(ob_outputDirectory)/ToolArtifact -Recurse -Verbose | ||
| displayName: Upload Tools | ||
|
|
||
| - pwsh: | | ||
| Write-Verbose -Verbose "Release Tag: $(OutputReleaseTag.releaseTag)" | ||
| $releaseVersion = '$(OutputReleaseTag.releaseTag)' -replace '^v','' | ||
| Write-Verbose -Verbose "Release Version: $releaseVersion" | ||
| $semanticVersion = [System.Management.Automation.SemanticVersion]$releaseVersion | ||
|
|
||
| $isPreview = $semanticVersion.PreReleaseLabel -ne $null | ||
|
|
||
| $fileName = if ($isPreview) { | ||
| "preview.md" | ||
| } | ||
| else { | ||
| $semanticVersion.Major.ToString() + "." + $semanticVersion.Minor.ToString() + ".md" | ||
| } | ||
|
|
||
| $filePath = "$(Build.SourcesDirectory)/PowerShell/CHANGELOG/$fileName" | ||
| Write-Verbose -Verbose "Selected Log file: $filePath" | ||
|
|
||
| if (-not (Test-Path -Path $filePath)) { | ||
| Write-Error "Changelog file not found: $filePath" | ||
| exit 1 | ||
| } | ||
|
|
||
| Write-Verbose -Verbose "Creating output directory for CHANGELOG: $(ob_outputDirectory)/CHANGELOG" | ||
| New-Item -Path $(ob_outputDirectory)/CHANGELOG -ItemType Directory -Force | ||
| Copy-Item -Path $filePath -Destination $(ob_outputDirectory)/CHANGELOG | ||
| displayName: Upload Changelog |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.