Skip to content

Commit ba66e93

Browse files
committed
preview stage now uses a deployment job, download-artifacts.yml and copy-and-build.yml is reduced to one instance
1 parent f9d2941 commit ba66e93

File tree

3 files changed

+13
-32
lines changed

3 files changed

+13
-32
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ stages:
4747
- stage: Maven-Preview
4848
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
4949
jobs:
50-
- job: Maven-Preview
51-
steps:
52-
- template: templates/download-artifacts.yml
53-
- template: templates/secure-files.yml
54-
- template: templates/copy-and-build.yml
55-
parameters:
56-
task: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
57-
- template: templates/alert-failure.yml
50+
- deployment: Maven-Preview
51+
environment: 'MSGraph SDK Development - Java'
52+
pool:
53+
vmImage: windows-latest
54+
strategy:
55+
runOnce:
56+
deploy:
57+
steps:
58+
- template: templates/secure-files.yml
59+
- template: templates/copy-and-build.yml
60+
parameters:
61+
task: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
62+
- template: templates/alert-failure.yml
5863

5964
- stage: Maven-Release-And-Github-Release
6065
dependsOn: []

.azure-pipelines/templates/download-artifacts.yml

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

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

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

0 commit comments

Comments
 (0)