Update release pipeline (#431)
This commit is contained in:
Родитель
2f2da24a18
Коммит
8a6cd1c126
|
@ -1,16 +1,36 @@
|
|||
trigger: none # Only run this pipeline when manually triggered
|
||||
|
||||
parameters:
|
||||
- name: publishVersion
|
||||
displayName: Version to publish
|
||||
type: string
|
||||
- name: dryRun
|
||||
displayName: Dry run
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
resources:
|
||||
pipelines:
|
||||
- pipeline: vscode-azurevirtualmachines # identifier to use in pipeline resource variables
|
||||
- pipeline: build # identifier to use in pipeline resource variables
|
||||
source: \Azure Tools\VSCode\Extensions\vscode-azurevirtualmachines # name of the pipeline that produces the artifacts
|
||||
repositories:
|
||||
- repository: azExtTemplates
|
||||
type: github
|
||||
name: microsoft/vscode-azuretools
|
||||
ref: main
|
||||
endpoint: GitHub-AzureTools # The service connection to use when accessing this repository
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
echo $(resources.pipeline.myresourcevars.pipelineID)
|
||||
echo $(resources.pipeline.myresourcevars.runName)
|
||||
echo $(resources.pipeline.myresourcevars.runID)
|
||||
echo $(resources.pipeline.myresourcevars.runURI)
|
||||
echo $(resources.pipeline.myresourcevars.sourceBranch)
|
||||
echo $(resources.pipeline.myresourcevars.sourceCommit)
|
||||
echo $(resources.pipeline.myresourcevars.sourceProvider)
|
||||
echo $(resources.pipeline.myresourcevars.requestedFor)
|
||||
echo $(resources.pipeline.myresourcevars.requestedForID)
|
||||
variables:
|
||||
# Required by MicroBuild template
|
||||
- name: TeamName
|
||||
value: "Azure Tools for VS Code"
|
||||
|
||||
# Use those templates
|
||||
extends:
|
||||
template: azure-pipelines/release-extension.yml@azExtTemplates
|
||||
parameters:
|
||||
pipelineID: $(resources.pipeline.build.pipelineID)
|
||||
runID: $(resources.pipeline.build.runID)
|
||||
publishVersion: ${{ parameters.publishVersion }}
|
||||
dryRun: ${{ parameters.dryRun }}
|
||||
environmentName: AzCodeDeploy
|
||||
|
|
Загрузка…
Ссылка в новой задаче