Skip to content

Commit 57df2dd

Browse files
Merge pull request #274 from microsoftgraph/dev
pipelines updates
2 parents d8aec05 + 2673625 commit 57df2dd

File tree

8 files changed

+32
-30
lines changed

8 files changed

+32
-30
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,61 +38,62 @@ stages:
3838
- job: Build
3939
steps:
4040
- template: templates/build/checkout-and-credscan.yml
41-
- template: templates/build/install-java.yml
41+
- template: templates/install-java.yml
4242
- template: templates/secure-files.yml
4343
parameters:
4444
stageID: 'build'
4545
- template: templates/build/build-and-coverage.yml
4646
- template: templates/build/publish-artefacts.yml
47-
- template: templates/alert-failure.yml
4847

49-
- stage: Maven-Preview
48+
- stage: Maven_Preview
5049
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
5150
jobs:
52-
- deployment: Maven-Preview
51+
- deployment: Maven_Preview
5352
environment: 'MSGraph SDK Development - Java'
5453
pool:
5554
vmImage: windows-latest
5655
strategy:
5756
runOnce:
5857
deploy:
59-
steps:
58+
steps:
59+
- template: templates/download-artifacts.yml
60+
- template: templates/install-java.yml
6061
- template: templates/secure-files.yml
6162
- template: templates/copy-and-build.yml
6263
parameters:
6364
task: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
64-
- template: templates/alert-failure.yml
6565

66-
- stage: Maven-Release-And-Github-Release
66+
- stage: Maven_Release_And_Github_Release
6767
dependsOn: []
6868
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
6969
jobs:
70-
- deployment: Maven-Release
70+
- deployment: Maven_Release
7171
environment: 'MSGraph SDK Development - Java'
7272
pool:
7373
vmImage: windows-latest
7474
strategy:
7575
runOnce:
7676
deploy:
7777
steps:
78+
- template: templates/download-artifacts.yml
79+
- template: templates/install-java.yml
7880
- template: templates/secure-files.yml
7981
parameters:
8082
stageID: 'release'
8183
- template: templates/copy-and-build.yml
8284
parameters:
8385
task: 'publishMavenCentralReleasePublicationToSonatypeRepository'
84-
- template: templates/alert-failure.yml
8586

86-
- deployment: Github-Release
87-
dependsOn: Maven-Release
87+
- deployment: Github_Release
88+
dependsOn: Maven_Release
8889
environment: 'MSGraph SDK Development - Java'
8990
pool:
9091
vmImage: windows-latest
9192
strategy:
9293
runOnce:
9394
deploy:
9495
steps:
96+
- template: templates/download-artifacts.yml
9597
- template: templates/version-and-release.yml
9698
parameters:
97-
gitConnection: 'ramsessanchez'
98-
- template: templates/alert-failure.yml
99+
gitConnection: 'microsoftgraphrelease'

.azure-pipelines/templates/alert-failure.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.azure-pipelines/templates/build/build-and-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- task: Gradle@2
33
inputs:
4-
gradleWrapperFile: 'gradlew'
4+
gradleWrapperFile: '$(Build.SourcesDirectory)/gradlew'
55
tasks: 'build'
66
publishJUnitResults: true
77
testResultsFiles: '**/TEST-*.xml'

.azure-pipelines/templates/build/checkout-and-credscan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ steps:
33
clean: true
44
fetchDepth: 1
55

6-
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
6+
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
77
displayName: 'Run CredScan'
88
inputs:
9-
debugMode: false
9+
debugMode: false

.azure-pipelines/templates/copy-and-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ steps:
88
inputs:
99
SourceFolder: '$(Agent.TempDirectory)'
1010
Contents: '**'
11-
TargetFolder: '$(DROP_PATH)/'
11+
TargetFolder: '$(Agent.BuildDirectory)/Drop/'
1212

1313
- task: Gradle@2
1414
inputs:
15-
gradleWrapperFile: '$(DROP_PATH)/gradlew'
16-
workingDirectory: '$(DROP_PATH)'
15+
gradleWrapperFile: $(Agent.BuildDirectory)/Drop/gradlew
16+
workingDirectory: '$(Agent.BuildDirectory)/Drop/'
1717
options: '-x jar -x javadoc -x javadocJar -x compileJava -x processResources -x classes -x sourceJar'
1818
tasks: ${{ parameters.task }}
1919
publishJUnitResults: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
steps:
2+
- download: none
3+
- task: DownloadPipelineArtifact@2
4+
inputs:
5+
source: current
6+
artifact: Drop
7+
path: '$(Agent.BuildDirectory)/Drop/'
8+
patterns: |
9+
**
10+
*
File renamed without changes.

.azure-pipelines/templates/version-and-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ steps:
77
- task: PowerShell@2
88
inputs:
99
filePath: '$(DROP_PATH)/Scripts/getLatestVersion.ps1'
10-
arguments: '-propertiesPath "$(PROPERTIES_PATH)"'
10+
arguments: '-propertiesPath "$(DROP_PATH)/gradle.properties"'
11+
pwsh: true
1112

1213
- task: GitHubRelease@1
1314
inputs:

0 commit comments

Comments
 (0)