@@ -14,11 +14,11 @@ trigger:
1414 include :
1515 - src/*
1616 exclude :
17+ - .gradle/wrapper
1718 - .gitignore
1819 - CONTRIBUTING.md
1920 - LICENSE
2021 - THIRD PARTY NOTICES
21- - build.gradle
2222 - gradle.properties
2323 - gradlew
2424 - gradlew.bat
@@ -29,85 +29,12 @@ trigger:
2929pr : none
3030
3131pool :
32- vmImage : ' windows-latest'
32+ vmImage : windows-latest
3333
3434steps :
35- - checkout : self
36- clean : true
37- fetchDepth : 1
38-
39- - task : securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
40- displayName : ' Run CredScan'
41- inputs :
42- debugMode : false
43-
44- - task : DownloadSecureFile@1
45- inputs :
46- secureFile : ' local.properties'
47-
48- - task : DownloadSecureFile@1
49- inputs :
50- secureFile : ' secring.gpg'
51-
52- - task : DownloadSecureFile@1
53- inputs :
54- secureFile : ' secring.gpg.lock'
55-
56- - task : CopyFiles@2
57- inputs :
58- SourceFolder : ' $(Agent.TempDirectory)'
59- Contents : ' **'
60- TargetFolder : ' $(System.DefaultWorkingDirectory)'
61-
62- - task : Gradle@2
63- inputs :
64- gradleWrapperFile : ' gradlew'
65- tasks : ' build'
66- publishJUnitResults : true
67- testResultsFiles : ' **/TEST-*.xml'
68- javaHomeOption : ' JDKVersion'
69- sonarQubeRunAnalysis : false
70-
71- - task : PublishCodeCoverageResults@1
72- inputs :
73- codeCoverageTool : ' JaCoCo'
74- summaryFileLocation : $(System.DefaultWorkingDirectory)/build/reports/jacoco/test/jacocoTestReport.xml
75- pathToSources : $(System.DefaultWorkingDirectory)/src/main/java
76- failIfCoverageEmpty : true
77-
78- - task : PublishBuildArtifacts@1
79- displayName : ' Publish Artifact: drop'
80- inputs :
81- PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
82-
83- - task : CopyFiles@2
84- inputs :
85- SourceFolder : ' $(System.DefaultWorkingDirectory)'
86- Contents : |
87- **/libs/*
88- build/generated-pom.xml
89- build/generated-pom.xml.asc
90- build.gradle
91- gradlew
92- gradlew.bat
93- settings.gradle
94- gradle.properties
95- **/gradle/**
96- Scripts/**
97- TargetFolder : ' $(Build.ArtifactStagingDirectory)/'
98-
99- - task : PublishBuildArtifacts@1
100- inputs :
101- PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
102- ArtifactName : ' drop'
103- publishLocation : ' Container'
104-
105- - task : YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
106- displayName : ' Graph Client Tooling pipeline fail notification'
107- inputs :
108- addressType : serviceEndpoint
109- serviceEndpointName : ' microsoftgraph pipeline status'
110- title : ' $(Build.DefinitionName) failure notification'
111- text : ' This pipeline has failed. View the build details for further information. This is a blocking failure.'
112- condition : and(failed(), ne(variables['Build.Reason'], 'Manual'))
113- enabled : true
35+ - template : templates/checkout-and-credscan.yml
36+ - template : templates/install-java.yml
37+ - template : templates/secure-files.yml
38+ - template : templates/build-and-coverage.yml
39+ - template : templates/publish-artefacts.yml
40+ - template : templates/alert-failure.yml
0 commit comments