Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .azure-pipelines/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: MSEngSS-MicroBuild2022-1ES
name: VSEngSS-MicroBuild2022-1ES
settings:
networkIsolationPolicy: Permissive
stages:
Expand Down
4 changes: 3 additions & 1 deletion .azure-pipelines/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: MSEngSS-MicroBuild2022-1ES
name: VSEngSS-MicroBuild2022-1ES
settings:
networkIsolationPolicy: Permissive
stages:
- stage: Build
jobs:
Expand Down
51 changes: 51 additions & 0 deletions .azure-pipelines/release-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This pipeline is used to release the Project Manager for Java VSCode extension from the nightly/stable build.
# It contains following steps:
# 1. Download the plugin artifact from the nightly/stable build pipeline.
# 2. Publish the plugin to the marketplace.

name: $(Date:yyyyMMdd).$(Rev:r) # Use the current date and a revision number for the build name.

variables:
- name: Codeql.Enabled
value: true
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
trigger: none
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
os: linux
name: 1ES_JavaTooling_Pool
image: 1ES_JavaTooling_Ubuntu-2004
stages:
- stage: Release
jobs:
- job: Job
displayName: Release Project Manager for Java VSCode Extension
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
buildType: specific
project: $(AzDo.ProjectId) # Azure DevOps project ID
definition: $(AzDo.BuildPipelineId) # artifact build pipeline ID
Comment on lines +39 to +40
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to call out that you need to configure these two variables in the ado pipeline. $(AzDo.ProjectId) = a4d27ce2-a42d-4b71-8eef-78cee9a9728e. BuildPipelineId is the nightly build job id, you can find it in that job URL.

artifactName: vsix
downloadType: specific
targetPath: '$(Build.SourcesDirectory)'
steps:
- task: AzureCLI@2
displayName: 'Publish Extension'
inputs:
azureSubscription: 'VSCode-Ext-Publishing'
scriptType: pscore
scriptLocation: inlineScript
inlineScript: 'npx @vscode/vsce@latest publish -i ''$(Build.SourcesDirectory)/extension.vsix'' --manifestPath ''$(Build.SourcesDirectory)/extension.manifest'' --signaturePath ''$(Build.SourcesDirectory)/extension.signature.p7s'' --azure-credential'
51 changes: 51 additions & 0 deletions .azure-pipelines/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This pipeline is used to release the Project Manager for Java VSCode extension from the nightly/stable build.
# It contains following steps:
# 1. Download the plugin artifact from the nightly/stable build pipeline.
# 2. Publish the plugin to the marketplace.

name: $(Date:yyyyMMdd).$(Rev:r) # Use the current date and a revision number for the build name.

variables:
- name: Codeql.Enabled
value: true
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
trigger: none
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
os: linux
name: 1ES_JavaTooling_Pool
image: 1ES_JavaTooling_Ubuntu-2004
stages:
- stage: Release
jobs:
- job: Job
displayName: Release Project Manager for Java VSCode Extension
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
buildType: specific
project: $(AzDo.ProjectId) # Azure DevOps project ID
definition: $(AzDo.BuildPipelineId) # artifact build pipeline ID
artifactName: vsix
downloadType: specific
targetPath: '$(Build.SourcesDirectory)'
steps:
- task: AzureCLI@2
displayName: 'Publish Extension'
inputs:
azureSubscription: 'VSCode-Ext-Publishing'
scriptType: pscore
scriptLocation: inlineScript
inlineScript: 'npx @vscode/vsce@latest publish -i ''$(Build.SourcesDirectory)/extension.vsix'' --manifestPath ''$(Build.SourcesDirectory)/extension.manifest'' --signaturePath ''$(Build.SourcesDirectory)/extension.signature.p7s'' --azure-credential'
Loading