Skip to content

Commit 87674d2

Browse files
authored
Merge pull request #275 from microsoftgraph/rsh/pipelineBugFixes
Rsh/pipeline bug fixes
2 parents 3923b07 + 03f7a3e commit 87674d2

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ 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'
@@ -55,7 +55,8 @@ stages:
5555
strategy:
5656
runOnce:
5757
deploy:
58-
steps:
58+
steps:
59+
- template: templates/install-java.yml
5960
- template: templates/secure-files.yml
6061
- template: templates/copy-and-build.yml
6162
parameters:
@@ -73,6 +74,7 @@ stages:
7374
runOnce:
7475
deploy:
7576
steps:
77+
- template: templates/install-java.yml
7678
- template: templates/secure-files.yml
7779
parameters:
7880
stageID: 'release'
@@ -89,6 +91,7 @@ stages:
8991
runOnce:
9092
deploy:
9193
steps:
94+
- template: templates/install-java.yml
9295
- template: templates/version-and-release.yml
9396
parameters:
9497
gitConnection: 'microsoftgraphrelease'

.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/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
File renamed without changes.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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"'
1111
pwsh: true
1212

1313
- task: GitHubRelease@1

0 commit comments

Comments
 (0)