Skip to content

Commit 5944b3e

Browse files
Merge pull request #34 from microsoftgraph/rsh/buildAndPackagePipeline
Rsh/build and package pipeline
2 parents 98d49b8 + 77bd5f4 commit 5944b3e

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#Copyright (c) Microsoft Corporation. All rights reserved.
2+
#Licensed under the MIT License.
3+
#Building and packaging the artifacts of the Java-Core libraries using the build.gradle file.
4+
#Ready the package for deployment and release.
5+
6+
trigger:
7+
branches:
8+
include:
9+
- dev
10+
- main
11+
- master
12+
paths:
13+
include:
14+
- src/*
15+
exclude:
16+
- .gitignore
17+
- CONTRIBUTING.md
18+
- LICENSE
19+
- THIRD PARTY NOTICES
20+
- build.gradle
21+
- gradle.properties
22+
- gradlew
23+
- gradlew.bat
24+
- readme.md
25+
- settings.gradle
26+
27+
pr: none
28+
29+
pool:
30+
vmImage: 'windows-latest'
31+
32+
steps:
33+
- checkout: self
34+
clean: true
35+
fetchDepth: 1
36+
37+
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
38+
displayName: 'Run CredScan'
39+
inputs:
40+
debugMode: false
41+
42+
- task: DownloadSecureFile@1
43+
inputs:
44+
secureFile: 'local.properties'
45+
46+
- task: DownloadSecureFile@1
47+
inputs:
48+
secureFile: 'secring.gpg'
49+
50+
- task: DownloadSecureFile@1
51+
inputs:
52+
secureFile: 'secring.gpg.lock'
53+
54+
- task: CopyFiles@2
55+
inputs:
56+
SourceFolder: '$(Agent.TempDirectory)'
57+
Contents: '**'
58+
TargetFolder: '$(System.DefaultWorkingDirectory)'
59+
60+
- task: Gradle@2
61+
inputs:
62+
gradleWrapperFile: 'gradlew'
63+
tasks: 'build'
64+
publishJUnitResults: true
65+
testResultsFiles: '**/TEST-*.xml'
66+
javaHomeOption: 'JDKVersion'
67+
sonarQubeRunAnalysis: false
68+
69+
- task: PublishBuildArtifacts@1
70+
displayName: 'Publish Artifact: drop'
71+
inputs:
72+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
73+
74+
- task: CopyFiles@2
75+
inputs:
76+
SourceFolder: '$(System.DefaultWorkingDirectory)'
77+
Contents: |
78+
**/libs/*
79+
build.gradle
80+
gradlew
81+
gradlew.bat
82+
settings.gradle
83+
gradle.properties
84+
**/gradle/wrapper/*
85+
TargetFolder: '$(Build.ArtifactStagingDirectory)/'
86+
87+
- task: PublishBuildArtifacts@1
88+
inputs:
89+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
90+
ArtifactName: 'drop'
91+
publishLocation: 'Container'
92+
93+
- task: YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
94+
displayName: 'Graph Client Tooling pipeline fail notification'
95+
inputs:
96+
addressType: serviceEndpoint
97+
serviceEndpointName: 'microsoftgraph pipeline status'
98+
title: '$(Build.DefinitionName) failure notification'
99+
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure.'
100+
condition: and(failed(), ne(variables['Build.Reason'], 'Manual'))
101+
enabled: true

0 commit comments

Comments
 (0)