@@ -9,15 +9,16 @@ trigger:
99 - dev
1010 - main
1111 - master
12+ - feature/v2
1213 paths :
1314 include :
1415 - src/*
1516 exclude :
17+ - .gradle/wrapper
1618 - .gitignore
1719 - CONTRIBUTING.md
1820 - LICENSE
1921 - THIRD PARTY NOTICES
20- - build.gradle
2122 - gradle.properties
2223 - gradlew
2324 - gradlew.bat
@@ -28,78 +29,12 @@ trigger:
2829pr : none
2930
3031pool :
31- vmImage : ' windows-latest'
32+ vmImage : windows-latest
3233
3334steps :
34- - checkout : self
35- clean : true
36- fetchDepth : 1
37-
38- - task : securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
39- displayName : ' Run CredScan'
40- inputs :
41- debugMode : false
42-
43- - task : DownloadSecureFile@1
44- inputs :
45- secureFile : ' local.properties'
46-
47- - task : DownloadSecureFile@1
48- inputs :
49- secureFile : ' secring.gpg'
50-
51- - task : DownloadSecureFile@1
52- inputs :
53- secureFile : ' secring.gpg.lock'
54-
55- - task : CopyFiles@2
56- inputs :
57- SourceFolder : ' $(Agent.TempDirectory)'
58- Contents : ' **'
59- TargetFolder : ' $(System.DefaultWorkingDirectory)'
60-
61- - task : Gradle@2
62- inputs :
63- gradleWrapperFile : ' gradlew'
64- tasks : ' build'
65- publishJUnitResults : true
66- testResultsFiles : ' **/TEST-*.xml'
67- javaHomeOption : ' JDKVersion'
68- sonarQubeRunAnalysis : false
69-
70- - task : PublishBuildArtifacts@1
71- displayName : ' Publish Artifact: drop'
72- inputs :
73- PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
74-
75- - task : CopyFiles@2
76- inputs :
77- SourceFolder : ' $(System.DefaultWorkingDirectory)'
78- Contents : |
79- **/libs/*
80- build/generated-pom.xml
81- build/generated-pom.xml.asc
82- build.gradle
83- gradlew
84- gradlew.bat
85- settings.gradle
86- gradle.properties
87- **/gradle/wrapper/*
88- Scripts/**
89- TargetFolder : ' $(Build.ArtifactStagingDirectory)/'
90-
91- - task : PublishBuildArtifacts@1
92- inputs :
93- PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
94- ArtifactName : ' drop'
95- publishLocation : ' Container'
96-
97- - task : YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
98- displayName : ' Graph Client Tooling pipeline fail notification'
99- inputs :
100- addressType : serviceEndpoint
101- serviceEndpointName : ' microsoftgraph pipeline status'
102- title : ' $(Build.DefinitionName) failure notification'
103- text : ' This pipeline has failed. View the build details for further information. This is a blocking failure.'
104- condition : and(failed(), ne(variables['Build.Reason'], 'Manual'))
105- 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