-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to 1ES pipelines * Update @vscode/test-electron
- Loading branch information
Showing
6 changed files
with
225 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,68 @@ | ||
name: $(Date:yyyyMMdd).$(Rev:r) | ||
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: | ||
- main | ||
|
||
jobs: | ||
- job: static_analysis | ||
displayName: Static Code Analysis | ||
branches: | ||
include: | ||
- main | ||
extends: | ||
template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines | ||
parameters: | ||
pool: | ||
vmImage: 'windows-latest' | ||
steps: | ||
- task: JavaToolInstaller@0 | ||
displayName: 'Use Java 17' | ||
inputs: | ||
versionSpec: 17 | ||
jdkArchitectureOption: x64 | ||
jdkSourceOption: PreInstalled | ||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2 | ||
displayName: 'Run CredScan' | ||
inputs: | ||
toolMajorVersion: V2 | ||
verboseOutput: true | ||
debugMode: false | ||
- task: PostAnalysis@1 | ||
displayName: 'Post Analysis' | ||
inputs: | ||
CredScan: true | ||
ToolLogsNotFoundAction: 'Standard' | ||
|
||
- job: ci | ||
displayName: VS Code Maven CI | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'npm run tslint' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run tslint' | ||
- task: Npm@1 | ||
displayName: 'npm run compile' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- script: 'npx @vscode/vsce@latest package' | ||
displayName: 'package vsix' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
Contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: drop' | ||
os: linux | ||
name: 1ES_JavaTooling_Pool | ||
image: 1ES_JavaTooling_Ubuntu-2004 | ||
sdl: | ||
sourceAnalysisPool: | ||
name: 1ES_JavaTooling_Pool | ||
image: 1ES_JavaTooling_Windows_2022 | ||
os: windows | ||
customBuildTags: | ||
- MigrationTooling-mseng-VSJava-9247-Tool | ||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Job_1 | ||
displayName: Agent job 1 | ||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
artifactName: drop | ||
targetPath: $(Build.ArtifactStagingDirectory) | ||
displayName: "Publish Artifact: drop" | ||
steps: | ||
- checkout: self | ||
fetchTags: true | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'npm run tslint' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run tslint' | ||
- task: Npm@1 | ||
displayName: 'npm run compile' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- script: 'npx @vscode/vsce@latest package' | ||
displayName: 'package vsix' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
Contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,80 @@ | ||
trigger: none | ||
pr: none | ||
|
||
name: $(Date:yyyyMMdd).$(Rev:r) | ||
variables: | ||
- name: Codeql.Enabled | ||
value: true | ||
schedules: | ||
- cron: "0 3 * * *" | ||
displayName: Daily 3am build | ||
branches: | ||
include: | ||
- main | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'npm run tslint' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run tslint' | ||
- task: Npm@1 | ||
displayName: 'npm run compile' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- bash: | | ||
npx json@latest -I -f package.json -e "this.aiKey=\"$(AI_KEY)\"" | ||
displayName: Replace AI Key | ||
- bash: | | ||
node ./scripts/prepare-nightly-build.js | ||
mv ./package.insiders.json ./package.json | ||
displayName: Generate new package.json | ||
- script: 'npx @vscode/vsce@latest package --pre-release' | ||
displayName: 'package vsix' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
Contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: drop' | ||
resources: | ||
repositories: | ||
- repository: self | ||
type: git | ||
ref: refs/heads/main | ||
- repository: 1esPipelines | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
trigger: none | ||
pr: none | ||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines | ||
parameters: | ||
pool: | ||
os: linux | ||
name: 1ES_JavaTooling_Pool | ||
image: 1ES_JavaTooling_Ubuntu-2004 | ||
sdl: | ||
sourceAnalysisPool: | ||
name: 1ES_JavaTooling_Pool | ||
image: 1ES_JavaTooling_Windows_2022 | ||
os: windows | ||
customBuildTags: | ||
- MigrationTooling-mseng-VSJava-13437-Tool | ||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Job_1 | ||
displayName: Agent job 1 | ||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
artifactName: vsix | ||
targetPath: $(Build.ArtifactStagingDirectory) | ||
displayName: "Publish Artifact: vsix" | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchTags: false | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'npm run tslint' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run tslint' | ||
- task: Npm@1 | ||
displayName: 'npm run compile' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- bash: | | ||
npx json@latest -I -f package.json -e "this.aiKey=\"$(AI_KEY)\"" | ||
displayName: Replace AI Key | ||
- bash: | | ||
node ./scripts/prepare-nightly-build.js | ||
mv ./package.insiders.json ./package.json | ||
displayName: Generate new package.json | ||
- script: 'npx @vscode/vsce@latest package --pre-release' | ||
displayName: 'package vsix' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
Contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,70 @@ | ||
name: $(Date:yyyyMMdd).$(Rev:r) | ||
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 | ||
pr: none | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'npm run tslint' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run tslint' | ||
- task: Npm@1 | ||
displayName: 'npm run compile' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- bash: | | ||
npx json@latest -I -f package.json -e "this.aiKey=\"$(AI_KEY)\"" | ||
displayName: Replace AI Key | ||
- script: 'npx @vscode/vsce@latest package' | ||
displayName: 'package vsix' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
Contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: drop' | ||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines | ||
parameters: | ||
pool: | ||
os: linux | ||
name: 1ES_JavaTooling_Pool | ||
image: 1ES_JavaTooling_Ubuntu-2004 | ||
sdl: | ||
sourceAnalysisPool: | ||
name: 1ES_JavaTooling_Pool | ||
image: 1ES_JavaTooling_Windows_2022 | ||
os: windows | ||
customBuildTags: | ||
- MigrationTooling-mseng-VSJava-13437-Tool | ||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Job_1 | ||
displayName: Agent job 1 | ||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
artifactName: vsix | ||
targetPath: $(Build.ArtifactStagingDirectory) | ||
displayName: "Publish Artifact: vsix" | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchTags: false | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'npm run tslint' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run tslint' | ||
- task: Npm@1 | ||
displayName: 'npm run compile' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- bash: | | ||
npx json@latest -I -f package.json -e "this.aiKey=\"$(AI_KEY)\"" | ||
displayName: Replace AI Key | ||
- script: 'npx @vscode/vsce@latest package' | ||
displayName: 'package vsix' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
Contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ node_modules/** | |
out/** | ||
.* | ||
scripts | ||
.azure-pipelines/** |
Oops, something went wrong.