build - Update ado pipelines according to the new arch (#1526)

This commit is contained in:
Sheng Chen 2024-07-25 19:26:33 +08:00 коммит произвёл GitHub
Родитель 2243c686f6
Коммит ffc122dc48
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 120 добавлений и 110 удалений

Просмотреть файл

@ -39,15 +39,41 @@ extends:
- checkout: self
fetchTags: true
- task: JavaToolInstaller@0
displayName: Install Java 11
displayName: Install Java 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: NodeTool@0
displayName: Install Node 16.14.2
displayName: Install Node 18.x
inputs:
versionSpec: '16.14.2'
versionSpec: 18.x
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16493
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Plugin Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/plugins'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server/plugins
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: 'server.jar'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs
- task: CopyFiles@2
displayName: 'Copy Build Server Runtime Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/runtime'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs/runtime
- task: Gradle@2
displayName: Build
inputs:
@ -63,28 +89,8 @@ extends:
- bash: chmod +x gradle-server
workingDirectory: $(Build.SourcesDirectory)/extension/lib
displayName: Set permission
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16493
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server
- task: JavaToolInstaller@0
displayName: Install Java 17
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: Gradle@2
displayName: Build
displayName: Build Gradle Build Server Importer
inputs:
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'

Просмотреть файл

@ -39,15 +39,41 @@ extends:
- checkout: self
fetchTags: false
- task: JavaToolInstaller@0
displayName: Install Java 11
displayName: Install Java 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: NodeTool@0
displayName: Install Node 18.x
inputs:
versionSpec: 18.x
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16492
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Plugin Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/plugins'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server/plugins
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: 'server.jar'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs
- task: CopyFiles@2
displayName: 'Copy Build Server Runtime Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/runtime'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs/runtime
- task: Gradle@2
displayName: Build
inputs:
@ -73,42 +99,8 @@ extends:
cd $(Build.SourcesDirectory)/extension/lib
chmod +x gradle-server
displayName: Set permission
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
- task: notice@0
displayName: 'NOTICE File Generator'
inputs:
outputformat: 'text'
- task: DownloadPipelineArtifact@2
displayName: Download NOTICE file
inputs:
artifact: 'NOTICE.txt'
path: $(Build.SourcesDirectory)/extension
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16492
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server
- task: JavaToolInstaller@0
displayName: Install Java 17
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: Gradle@2
displayName: Build
displayName: Build Gradle Build Server Importer
inputs:
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'

Просмотреть файл

@ -44,15 +44,41 @@ extends:
- checkout: self
fetchTags: true
- task: JavaToolInstaller@0
displayName: Install Java 11
displayName: Install Java 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: NodeTool@0
displayName: Install Node 18.x
inputs:
versionSpec: 18.x
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16493
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Plugin Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/plugins'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server/plugins
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: 'server.jar'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs
- task: CopyFiles@2
displayName: 'Copy Build Server Runtime Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/runtime'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs/runtime
- task: Gradle@2
displayName: Build
inputs:
@ -122,28 +148,8 @@ extends:
inputs:
artifact: 'NOTICE.txt'
path: $(Build.SourcesDirectory)/extension
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16493
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server
- task: JavaToolInstaller@0
displayName: Install Java 17
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: Gradle@2
displayName: Build
displayName: Build Gradle Build Server Importer
inputs:
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'

Просмотреть файл

@ -44,15 +44,41 @@ extends:
- checkout: self
fetchTags: true
- task: JavaToolInstaller@0
displayName: Install Java 11
displayName: Install Java 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: NodeTool@0
displayName: Install Node 18.x
inputs:
versionSpec: 18.x
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16493
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Plugin Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/plugins'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server/plugins
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: 'server.jar'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs
- task: CopyFiles@2
displayName: 'Copy Build Server Runtime Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs/runtime'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/gradle-server/build/libs/runtime
- task: Gradle@2
displayName: Build
inputs:
@ -117,28 +143,8 @@ extends:
inputs:
artifact: 'NOTICE.txt'
path: $(Build.SourcesDirectory)/extension
- task: DownloadBuildArtifacts@1
displayName: 'Download Build Server Artifacts'
inputs:
buildType: specific
project: 'a4d27ce2-a42d-4b71-8eef-78cee9a9728e'
pipeline: 16493
downloadType: specific
extractTars: false
- task: CopyFiles@2
displayName: 'Copy Build Server Artifacts'
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/build-server/server/build/libs'
Contents: '**'
TargetFolder: $(Build.SourcesDirectory)/extension/server
- task: JavaToolInstaller@0
displayName: Install Java 17
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: Gradle@2
displayName: Build
displayName: Build Gradle Build Server Importer
inputs:
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'

Просмотреть файл

@ -71,7 +71,7 @@ export class BspProxy {
sendInfo("", {
kind: "bspProxy-importerConnectionError",
message: error.message,
errorStack: error.stack ? error.stack.toString() : "",
proxyErrorStack: error.stack ? error.stack.toString() : "",
});
// TODO: Implement more specific error handling logic here
});
@ -81,7 +81,7 @@ export class BspProxy {
sendInfo("", {
kind: "bspProxy-importerConnectionError",
message: error.message,
errorStack: error.stack ? error.stack.toString() : "",
proxyErrorStack: error.stack ? error.stack.toString() : "",
});
// TODO: Implement more specific error handling logic here
});