Skip to content

Commit b11fcb1

Browse files
committed
Organized and set the pipeline files to be in line with the Core library. Tasks are under the template folder
1 parent 105fa63 commit b11fcb1

File tree

5 files changed

+98
-0
lines changed

5 files changed

+98
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#Copyright (c) Microsoft Corporation. All rights reserved.
2+
#Licensed under the MIT License.
3+
#Building and packaging the artifacts of the Java-SDK 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+
- feature/v3
12+
paths:
13+
include:
14+
- src/*
15+
exclude:
16+
- docs/*
17+
- .github/*
18+
- LICENSE
19+
- .gitignore
20+
- README-localized/*
21+
- CONTRIBUTING.md
22+
- THIRD PARTY NOTICES
23+
- README.md
24+
25+
pr: none
26+
27+
pool:
28+
vmImage: ubuntu-latest
29+
30+
steps:
31+
- template: templates/secure-files.yml
32+
- template: templates/build-and-coverage.yml
33+
- template: templates/publish-artifacts.yml
34+
- template: templates/alert-failure.yml
35+
36+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
steps:
2+
- task: O365PostMessageRelease@0
3+
inputs:
4+
addressType: 'serviceEndpoint'
5+
messageType: 'message'
6+
title: '$(Build.DefinitionName) failure notification'
7+
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure.'
8+
includeLink: true
9+
linkText: 'View Release Detail'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
steps:
2+
- task: Gradle@2
3+
inputs:
4+
gradleWrapperFile: 'gradlew'
5+
tasks: 'build'
6+
publishJUnitResults: true
7+
testResultsFiles: '**/TEST-*.xml'
8+
javaHomeOption: 'JDKVersion'
9+
sonarQubeRunAnalysis: false
10+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
steps:
2+
- task: CopyFiles@2
3+
inputs:
4+
SourceFolder: '$(system.defaultworkingdirectory)'
5+
Contents: |
6+
**/libs/*
7+
build/generated-pom.xml
8+
build/generated-pom.xml.asc
9+
build.gradle
10+
gradlew
11+
gradlew.bat
12+
settings.gradle
13+
gradle.properties
14+
**/gradle/**
15+
Scripts/getLatestVersion.ps1
16+
TargetFolder: '$(build.artifactstagingdirectory)/'
17+
18+
- task: PublishBuildArtifacts@1
19+
inputs:
20+
PathtoPublish: '$(build.artifactstagingdirectory)'
21+
ArtifactName: 'drop'
22+
publishLocation: 'Container'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
steps:
2+
- task: DownloadSecureFile@1
3+
inputs:
4+
secureFile: 'local.properties'
5+
retryCount: '5'
6+
7+
- task: DownloadSecureFile@1
8+
inputs:
9+
secureFile: 'secring.gpg'
10+
retryCount: '5'
11+
12+
- task: DownloadSecureFile@1
13+
inputs:
14+
secureFile: 'secring.gpg.lock'
15+
retryCount: '5'
16+
17+
- task: CopyFiles@2
18+
inputs:
19+
SourceFolder: '$(Agent.TempDirectory)'
20+
Contents: '**'
21+
TargetFolder: '$(system.defaultworkingdirectory)'

0 commit comments

Comments
 (0)