38 lines
1.5 KiB
YAML
38 lines
1.5 KiB
YAML
steps:
|
|
- template: release-SetReleaseTagAndContainerName.yml
|
|
|
|
- pwsh: |
|
|
$packageVersion = '$(ReleaseTag)'.ToLowerInvariant() -replace '^v',''
|
|
$vstsCommandString = "vso[task.setvariable variable=packageVersion]$packageVersion"
|
|
Write-Host "sending " + $vstsCommandString
|
|
Write-Host "##$vstsCommandString"
|
|
displayName: Set Package version
|
|
|
|
- pwsh: |
|
|
git clone https://$(AzureDevOpsPat)@mscodehub.visualstudio.com/PowerShellCore/_git/Internal-PowerShellTeam-Tools '$(Pipeline.Workspace)/tools'
|
|
displayName: Clone Internal-PowerShellTeam-Tools from MSCodeHub
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
source: specific
|
|
project: PowerShellCore
|
|
pipeline: '696'
|
|
preferTriggeringPipeline: true
|
|
runVersion: latestFromBranch
|
|
runBranch: '$(Build.SourceBranch)'
|
|
artifact: metadata
|
|
path: '$(Pipeline.Workspace)/releasePipeline/metadata'
|
|
|
|
- pwsh: |
|
|
$metadata = Get-Content -Path "$ENV:PIPELINE_WORKSPACE/releasePipeline/metadata/release.json" -Raw | ConvertFrom-Json
|
|
Write-Verbose -Verbose "$(ReleaseTag) $(RepoClientCliClientID) $(RepoClientCliSecret) $(AzureVersion) $($metadata.LTSRelease)"
|
|
$params = @{
|
|
ReleaseTag = "$(ReleaseTag)"
|
|
AadClientId = "$(RepoClientCliClientID)"
|
|
AadClientSecret = "$(RepoClientCliSecret)"
|
|
BlobFolderName = "$(AzureVersion)"
|
|
LTS = $metadata.LTSRelease
|
|
ForProduction = $true
|
|
}
|
|
& '$(Pipeline.Workspace)/tools/packages.microsoft.com/releaseLinuxPackages.ps1' @params
|
|
displayName: Run release script
|