From 9bd2d112df5e90217d0112cc446cb4a4dc241983 Mon Sep 17 00:00:00 2001 From: Naia Scott Date: Fri, 2 Jun 2023 12:28:11 -0400 Subject: [PATCH 1/2] init --- .pipeline/insiders-pipeline.yml | 65 +++++++++++++++++++++++++++++++++ .pipeline/release-pipeline.yml | 3 +- 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .pipeline/insiders-pipeline.yml diff --git a/.pipeline/insiders-pipeline.yml b/.pipeline/insiders-pipeline.yml new file mode 100644 index 0000000..dae7cdb --- /dev/null +++ b/.pipeline/insiders-pipeline.yml @@ -0,0 +1,65 @@ +trigger: none +pr: + - master +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '14.x' + displayName: 'Install Node.js' +- task: CmdLine@2 + displayName: 'Installing Dependencies' + inputs: + script: | + sudo npm install -g yarn + sudo npm install -g vsce +- task: CmdLine@2 + displayName: 'Building Vsix Packages' + inputs: + script: | + yarn install + yarn run compile + yarn run package +- task: EsrpCodeSigning@2 + displayName: 'Code Signing' + inputs: + ConnectedServiceName: 'Database System ESRP Connector' + FolderPath: '$(Build.SourcesDirectory)' + Pattern: '*.vsix' + useMinimatch: true + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "KeyCode" : "CP-233016", + "OperationCode" : "OpcSign", + "Parameters" : { + "FileDigest" : "/fd SHA256" + }, + "ToolName" : "sign", + "ToolVersion" : "1.0" + }, + { + "KeyCode" : "CP-233016", + "OperationCode" : "OpcVerify", + "Parameters" : {}, + "ToolName" : "sign", + "ToolVersion" : "1.0" + } + ] + SessionTimeout: '60' + MaxConcurrency: '50' + MaxRetryAttempts: '5' +- task: CopyFiles@2 + inputs: + sourceFolder: '$(Build.SourcesDirectory)' + contents: '*.vsix' + targetFolder: '$(Build.ArtifactStagingDirectory)' + displayName: 'Copy Files' +- task: PublishBuildArtifacts@1 + inputs: + pathToPublish: '$(Build.ArtifactStagingDirectory)' + artifactName: build + displayName: 'Publish Artifacts' \ No newline at end of file diff --git a/.pipeline/release-pipeline.yml b/.pipeline/release-pipeline.yml index f316f30..e3b893f 100644 --- a/.pipeline/release-pipeline.yml +++ b/.pipeline/release-pipeline.yml @@ -1,5 +1,6 @@ trigger: none -pr: none +pr: + - release pool: vmImage: 'ubuntu-latest' From 3cf743f8b3c5214c94f79e214103fdfd34dd63ff Mon Sep 17 00:00:00 2001 From: Naia Scott Date: Fri, 2 Jun 2023 14:43:05 -0400 Subject: [PATCH 2/2] pr builds and triggers --- .pipeline/insiders-pipeline.yml | 3 +-- .pipeline/pullrequest-pipeline.yml | 23 +++++++++++++++++++++++ .pipeline/release-pipeline.yml | 4 ++-- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .pipeline/pullrequest-pipeline.yml diff --git a/.pipeline/insiders-pipeline.yml b/.pipeline/insiders-pipeline.yml index dae7cdb..f316f30 100644 --- a/.pipeline/insiders-pipeline.yml +++ b/.pipeline/insiders-pipeline.yml @@ -1,6 +1,5 @@ trigger: none -pr: - - master +pr: none pool: vmImage: 'ubuntu-latest' diff --git a/.pipeline/pullrequest-pipeline.yml b/.pipeline/pullrequest-pipeline.yml new file mode 100644 index 0000000..62b3917 --- /dev/null +++ b/.pipeline/pullrequest-pipeline.yml @@ -0,0 +1,23 @@ +trigger: none +pr: + - master +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '14.x' + displayName: 'Install Node.js' +- task: CmdLine@2 + displayName: 'Installing Dependencies' + inputs: + script: | + sudo npm install -g yarn +- task: CmdLine@2 + displayName: 'Building Vsix Packages' + inputs: + script: | + yarn install + yarn run compile + yarn run package \ No newline at end of file diff --git a/.pipeline/release-pipeline.yml b/.pipeline/release-pipeline.yml index c0eb522..ab22aa3 100644 --- a/.pipeline/release-pipeline.yml +++ b/.pipeline/release-pipeline.yml @@ -1,6 +1,6 @@ -trigger: none -pr: +trigger: - release +pr: none strategy: matrix: mac-x64: