Skip to content

Commit bb5471f

Browse files
committed
all stages complete with their respective tasks
1 parent b38f071 commit bb5471f

File tree

12 files changed

+96
-9
lines changed

12 files changed

+96
-9
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,22 @@ stages:
3030
jobs:
3131
- job: Build
3232
steps:
33-
- template: templates/build-stage/checkout-and-credscan.yml
34-
- template: templates/build-stage/install-java.yml
35-
- template: templates/build-stage/secure-files.yml
36-
- template: templates/build-stage/build-and-coverage.yml
37-
- template: templates/build-stage/publish-artifacts.yml
33+
- template: templates/build/checkout-and-credscan.yml
34+
- template: templates/build/install-java.yml
35+
- template: templates/build/secure-files.yml
36+
- template: templates/build/build-and-coverage.yml
37+
- template: templates/build/publish-artifacts.yml
3838
- template: templates/alert-failure.yml
3939

4040
- stage: Maven-Preview
4141
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
4242
jobs:
4343
- job: Maven-Preview
4444
steps:
45-
- template:
45+
- template: templates/download-artifacts.yml
46+
- template: templates/maven-preview/secure-files.yml
47+
- template: templates/maven-preview/copy-and-build.yml
48+
- template: templates/alert-failure.yml
4649

4750
- stage: Maven-Release-And-Git-Release
4851
dependsOn: []
@@ -56,7 +59,9 @@ stages:
5659
runOnce:
5760
deploy:
5861
steps:
59-
- template:
62+
- template: templates/maven-release/secure-files.yml
63+
- template: templates/maven-release/copy-and-build.yml
64+
- template: templates/alert-failure.yml
6065

6166
- deployment: Github-Release
6267
dependsOn: Maven-Release
@@ -66,7 +71,8 @@ stages:
6671
strategy:
6772
runOnce:
6873
deploy:
69-
steps:
70-
- template:
74+
steps:
75+
- template: templates/github-release-stage/version-and-release.yml
76+
- template: templates/alert-failure.yml
7177

7278

.azure-pipelines/templates/build-stage/build-and-coverage.yml renamed to .azure-pipelines/templates/build/build-and-coverage.yml

File renamed without changes.

.azure-pipelines/templates/build-stage/checkout-and-credscan.yml renamed to .azure-pipelines/templates/build/checkout-and-credscan.yml

File renamed without changes.
File renamed without changes.

.azure-pipelines/templates/build-stage/publish-artifacts.yml renamed to .azure-pipelines/templates/build/publish-artifacts.yml

File renamed without changes.
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
steps:
2+
- task: DownloadPipelineArtifact@2
3+
inputs:
4+
buildType: 'current'
5+
artifactName: 'Drop'
6+
targetPath: '$(Pipeline.Workspace)'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
steps:
2+
- task: PowerShell@2
3+
inputs:
4+
filePath: '$(System.DefaultWorkingDirectory)/_msgraph-sdk-java build and packaging/drop/Scripts/getLatestVersion.ps1'
5+
arguments: '-propertiesPath "$(PROPERTIES_PATH)"'
6+
7+
- task: GitHubRelease@1
8+
inputs:
9+
gitHubConnection: 'ramsessanchez'
10+
repositoryName: '$(Build.Repository.Name)'
11+
action: 'create'
12+
target: '$(Build.SourceVersion)'
13+
tagSource: 'userSpecifiedTag'
14+
tag: '$(VERSION_STRING)'
15+
assets: |
16+
!**/**
17+
$(Build.ArtifactStagingDirectory)/*
18+
changeLogCompareToRelease: 'lastFullRelease'
19+
changeLogType: 'commitBased'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
steps:
2+
- task: CopyFiles@2
3+
inputs:
4+
SourceFolder: '$(Agent.TempDirectory)'
5+
Contents: '**'
6+
TargetFolder: '$(System.DefaultWorkingDirectory)/_msgraph-sdk-java build and packaging/drop/'
7+
8+
- task: Gradle@2
9+
inputs:
10+
gradleWrapperFile: '$(System.DefaultWorkingDirectory)/_msgraph-sdk-java build and packaging/drop/gradlew'
11+
workingDirectory: '$(System.DefaultWorkingDirectory)/_msgraph-sdk-java build and packaging/drop/'
12+
options: '-x jar -x javadoc -x javadocJar -x compileJava -x processResources -x classes -x sourceJar'
13+
tasks: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
14+
publishJUnitResults: true
15+
testResultsFiles: '**/TEST-*.xml'
16+
javaHomeOption: 'JDKVersion'
17+
sonarQubeRunAnalysis: false
18+
spotBugsAnalysis: false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
steps:
2+
- task: DownloadSecureFile@1
3+
inputs:
4+
secureFile: local.properties
5+
retryCount: 5

0 commit comments

Comments
 (0)