|
| 1 | +name: $(Date:yyyyMMdd).$(Rev:r) |
| 2 | +variables: |
| 3 | + - name: Codeql.Enabled |
| 4 | + value: true |
| 5 | +schedules: |
| 6 | + - cron: 0 7 * * 1,2,3,4,5 |
| 7 | + branches: |
| 8 | + include: |
| 9 | + - refs/heads/main |
| 10 | +resources: |
| 11 | + pipelines: |
| 12 | + - pipeline: microsoft.java-debug.signjars.nightly |
| 13 | + source: microsoft.java-debug.signjars.nightly |
| 14 | + trigger: |
| 15 | + branches: |
| 16 | + include: |
| 17 | + - refs/heads/main |
| 18 | + repositories: |
| 19 | + - repository: self |
| 20 | + type: git |
| 21 | + ref: refs/heads/main |
| 22 | + - repository: 1esPipelines |
| 23 | + type: git |
| 24 | + name: 1ESPipelineTemplates/1ESPipelineTemplates |
| 25 | + ref: refs/tags/release |
| 26 | +trigger: none |
| 27 | +extends: |
| 28 | + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines |
| 29 | + parameters: |
| 30 | + pool: |
| 31 | + os: linux |
| 32 | + name: 1ES_JavaTooling_Pool |
| 33 | + image: 1ES_JavaTooling_Ubuntu-2004 |
| 34 | + sdl: |
| 35 | + sourceAnalysisPool: |
| 36 | + name: 1ES_JavaTooling_Pool |
| 37 | + image: 1ES_JavaTooling_Windows_2022 |
| 38 | + os: windows |
| 39 | + customBuildTags: |
| 40 | + - MigrationTooling-mseng-VSJava-13475-Tool |
| 41 | + stages: |
| 42 | + - stage: Build |
| 43 | + jobs: |
| 44 | + - job: Job_1 |
| 45 | + displayName: VSCode-Java-Debug-Nightly |
| 46 | + templateContext: |
| 47 | + outputs: |
| 48 | + - output: pipelineArtifact |
| 49 | + artifactName: vsix |
| 50 | + targetPath: $(Build.ArtifactStagingDirectory)/vsix |
| 51 | + displayName: "Publish Artifact: vsix" |
| 52 | + steps: |
| 53 | + - checkout: self |
| 54 | + fetchTags: false |
| 55 | + - task: DownloadBuildArtifacts@1 |
| 56 | + displayName: Download Build Artifacts |
| 57 | + inputs: |
| 58 | + buildType: specific |
| 59 | + project: a4d27ce2-a42d-4b71-8eef-78cee9a9728e |
| 60 | + definition: "16485" |
| 61 | + specificBuildWithTriggering: true |
| 62 | + downloadType: specific |
| 63 | + itemPattern: plugin/jars/com.microsoft.java.debug.plugin-*.jar |
| 64 | + extractTars: false |
| 65 | + - task: CmdLine@2 |
| 66 | + displayName: cp plugin.jar to server |
| 67 | + inputs: |
| 68 | + script: |- |
| 69 | + mkdir -p server |
| 70 | +
|
| 71 | + cp $(System.ArtifactsDirectory)/plugin/jars/com.microsoft.java.debug.plugin-*[!a-zA-Z].jar server/ |
| 72 | + ls -l server/ |
| 73 | + - task: Npm@1 |
| 74 | + displayName: npm install |
| 75 | + inputs: |
| 76 | + verbose: false |
| 77 | + - task: CmdLine@2 |
| 78 | + displayName: Update nightly vsix version |
| 79 | + inputs: |
| 80 | + script: node scripts/build/prepare-nightly-build.js |
| 81 | + - task: CmdLine@2 |
| 82 | + displayName: Replace AI key |
| 83 | + inputs: |
| 84 | + script: npx json@9.0.6 -I -f package.json -e "this.aiKey=\"$AI_KEY\"" |
| 85 | + - task: CmdLine@2 |
| 86 | + displayName: vsce package --pre-release |
| 87 | + inputs: |
| 88 | + script: npx @vscode/vsce@latest package --pre-release |
| 89 | + - task: CopyFiles@2 |
| 90 | + displayName: "Copy Files to: $(Build.ArtifactStagingDirectory)/vsix" |
| 91 | + inputs: |
| 92 | + Contents: "*.vsix" |
| 93 | + TargetFolder: $(Build.ArtifactStagingDirectory)/vsix |
0 commit comments