File tree Expand file tree Collapse file tree 6 files changed +32
-8
lines changed
Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ stages:
3535 - job :
3636 steps :
3737 - template : templates/build/checkout-and-credscan.yml
38- - template : templates/build/ install-java.yml
38+ - template : templates/install-java.yml
3939 - template : templates/secure-files.yml
4040 parameters :
4141 stageID : ' build'
42- - template : templates/build/build-and-coverage .yml
42+ - template : templates/build/pipeline-build .yml
4343 - template : templates/build/publish-artifacts.yml
4444
4545- stage : Maven_Preview_And_Github_Release
@@ -53,6 +53,8 @@ stages:
5353 runOnce :
5454 deploy :
5555 steps :
56+ - template : templates/download-artifacts.yml
57+ - template : templates/install-java.yml
5658 - template : templates/secure-files.yml
5759 - template : templates/copy-and-build.yml
5860
@@ -65,6 +67,7 @@ stages:
6567 runOnce :
6668 deploy :
6769 steps :
70+ - template : templates/download-artifacts.yml
6871 - template : templates/version-and-release.yml
6972 parameters :
7073 gitConnection : ' microsoftgraphrelease'
Original file line number Diff line number Diff line change 11steps :
22- task : Gradle@2
33 inputs :
4- gradleWrapperFile : ' gradlew'
4+ gradleWrapperFile : ' $(Build.SourcesDirectory)/ gradlew'
55 tasks : ' build'
66 publishJUnitResults : true
77 testResultsFiles : ' **/TEST-*.xml'
88 javaHomeOption : ' JDKVersion'
9- sonarQubeRunAnalysis : false
9+ sonarQubeRunAnalysis : false
Original file line number Diff line number Diff line change 33 inputs :
44 SourceFolder : ' $(Agent.TempDirectory)'
55 Contents : ' **'
6- TargetFolder : ' $(DROP_PATH) /'
6+ TargetFolder : ' $(Agent.BuildDirectory)/Drop /'
77
88- task : Gradle@2
99 inputs :
10- gradleWrapperFile : ' $(DROP_PATH) /gradlew'
11- workingDirectory : ' $(DROP_PATH) /'
10+ gradleWrapperFile : ' $(Agent.BuildDirectory)/Drop /gradlew'
11+ workingDirectory : ' $(Agent.BuildDirectory)/Drop /'
1212 options : ' -x jar -x javadoc -x javadocJar -x compileJava -x processResources -x classes -x sourceJar'
1313 tasks : ' publishSnapshotPublicationToSonatypeSnapshotRepository'
1414 publishJUnitResults : true
Original file line number Diff line number Diff line change 1+ steps :
2+ - download : none
3+ - task : DownloadPipelineArtifact@2
4+ inputs :
5+ buildType : ' current'
6+ artifactName : ' Drop'
7+ itemPattern : |
8+ **
9+ *
10+ targetPath : ' $(Agent.BuildDirectory)/Drop/'
Original file line number Diff line number Diff line change 1+ steps :
2+ - pwsh : ' Invoke-WebRequest -Uri https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_windows_hotspot_16_36.zip -OutFile OpenJDK.zip'
3+ displayName : ' Download JDK'
4+
5+ - task : JavaToolInstaller@0
6+ inputs :
7+ versionSpec : ' 16'
8+ jdkArchitectureOption : ' x64'
9+ jdkSourceOption : ' LocalDirectory'
10+ jdkFile : ' OpenJDK.zip'
11+ jdkDestinationDirectory : ' binaries'
Original file line number Diff line number Diff line change 77- task : PowerShell@2
88 inputs :
99 filePath : ' $(DROP_PATH)/Scripts/getLatestVersion.ps1'
10- arguments : ' -propertiesPath "$(PROPERTIES_PATH) "'
10+ arguments : ' -propertiesPath "$(DROP_PATH)/gradle.properties "'
1111 pwsh : true
1212
1313- task : GitHubRelease@1
You can’t perform that action at this time.
0 commit comments