diff --git a/.pipeline/insiders-pipeline.yml b/.pipeline/insiders-pipeline.yml new file mode 100644 index 0000000..f316f30 --- /dev/null +++ b/.pipeline/insiders-pipeline.yml @@ -0,0 +1,64 @@ +trigger: none +pr: none +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/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 beef9cf..ab22aa3 100644 --- a/.pipeline/release-pipeline.yml +++ b/.pipeline/release-pipeline.yml @@ -1,4 +1,5 @@ -trigger: none +trigger: + - release pr: none strategy: matrix: