Skip to content

Commit 463a4a6

Browse files
fix: use Gradle@4 ADO task for daily-ci build
Replace shell script steps with the managed Gradle@4 task which handles Java setup, dependency resolution, and JUnit test result publishing natively within ADO infrastructure. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 55a9bb9 commit 463a4a6

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

‎.azure-pipelines/daily-ci-build.yml‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,15 @@ extends:
4343
- checkout: self
4444
submodules: recursive
4545

46-
- task: JavaToolInstaller@0
47-
displayName: Set up Java
46+
- task: Gradle@4
47+
displayName: Build and Test SDK
4848
inputs:
49-
versionSpec: '17'
49+
gradleWrapperFile: 'gradlew'
50+
workingDirectory: '$(Build.SourcesDirectory)'
51+
tasks: 'assemble test'
52+
options: '-DskipCodeAnalysis=true --no-daemon'
53+
publishJUnitResults: true
54+
testResultsFiles: '**/TEST-*.xml'
55+
javaHomeOption: 'JDKVersion'
56+
jdkVersionOption: '1.17'
5057
jdkArchitectureOption: 'x64'
51-
jdkSourceOption: 'PreInstalled'
52-
53-
- script: chmod +x gradlew && ./gradlew build -DskipCodeAnalysis=true
54-
displayName: Build SDK
55-
workingDirectory: $(Build.SourcesDirectory)
56-
57-
- script: ./gradlew test -DskipCodeAnalysis=true
58-
displayName: Run unit tests
59-
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)