Skip to content

Pipeline to facilitate Roslyn Copilot publish #8508

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
58 changes: 58 additions & 0 deletions azure-pipelines/publish-roslyn-copilot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
trigger: none
pr: none

resources:
Copy link
Member

Choose a reason for hiding this comment

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

Kind of a meta question here. Should this pipeline even be in this repo? Would conversations be a better place?

For example if you want to change the folder name where it finds the conversations build artifacts to upload. Now you have to make the change across two repos. If this was in conversations you just updated both at the same time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question, my thinking was having this closer to the component that actually needs it. The conversations repo has a slightly different set of processes tied to build and release pipelines which are tied to VS. Having it here gives us the freedom to iterate on this quicker. It also keeps this in our teams cross hairs a little more working with the processes we have - its been hard figuring out where things exist, so trying to keep some of the infra pieces atleast in fewer places.

repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
pipelines:
- pipeline: CI
project: DevDiv
source: VisualStudio.Conversations
branch: main
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: AzurePipelines-EO
image: 1ESPT-Windows2022
os: windows
stages:
- stage: Upload
jobs:
- job: UploadToServer
displayName: Upload to server
pool:
name: AzurePipelines-EO
image: 1ESPT-Windows2022
os: windows
templateContext:
type: releaseJob
isProduction: false #change this
inputs:
- input: pipelineArtifact
pipeline: CI
artifactName: partnerDeployables-Windows
destinationPath: $(Pipeline.Workspace)/artifacts

steps:
- checkout: none

- task: CopyFiles@2
displayName: 'Copy files from Zip folder to staging directory'
inputs:
SourceFolder: '$(Pipeline.Workspace)/'
Contents: '**/*Roslyn.LanguageServer*.zip'
TargetFolder: '$(Build.ArtifactStagingDirectory)/staging'
CleanTargetFolder: true

- task: AzureFileCopy@6
displayName: "Copy the zip to Azure Storage"
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)/staging/*'
azureSubscription: "$(AzSubscription)"
Destination: "AzureBlob"
storage: "$(AzStorage)"
ContainerName: "$(AzContainerName)"
Loading