Skip to content

Commit 97070c8

Browse files
authored
Merge pull request #146 from microsoftgraph/rsh/pipelineBugFixes
Rsh/pipeline bug fixes
2 parents 47e7fac + 33ef3a0 commit 97070c8

File tree

6 files changed

+32
-8
lines changed

6 files changed

+32
-8
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ stages:
3535
- job:
3636
steps:
3737
- template: templates/build/checkout-and-credscan.yml
38-
- template: templates/build/install-java.yml
38+
- template: templates/install-java.yml
3939
- template: templates/secure-files.yml
4040
parameters:
4141
stageID: 'build'
42-
- template: templates/build/build-and-coverage.yml
42+
- template: templates/build/pipeline-build.yml
4343
- template: templates/build/publish-artifacts.yml
4444

4545
- stage: Maven_Preview_And_Github_Release
@@ -53,6 +53,8 @@ stages:
5353
runOnce:
5454
deploy:
5555
steps:
56+
- template: templates/download-artifacts.yml
57+
- template: templates/install-java.yml
5658
- template: templates/secure-files.yml
5759
- template: templates/copy-and-build.yml
5860

@@ -65,6 +67,7 @@ stages:
6567
runOnce:
6668
deploy:
6769
steps:
70+
- template: templates/download-artifacts.yml
6871
- template: templates/version-and-release.yml
6972
parameters:
7073
gitConnection: 'microsoftgraphrelease'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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'
88
javaHomeOption: 'JDKVersion'
9-
sonarQubeRunAnalysis: false
9+
sonarQubeRunAnalysis: false

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ steps:
33
inputs:
44
SourceFolder: '$(Agent.TempDirectory)'
55
Contents: '**'
6-
TargetFolder: '$(DROP_PATH)/'
6+
TargetFolder: '$(Agent.BuildDirectory)/Drop/'
77

88
- task: Gradle@2
99
inputs:
10-
gradleWrapperFile: '$(DROP_PATH)/gradlew'
11-
workingDirectory: '$(DROP_PATH)/'
10+
gradleWrapperFile: '$(Agent.BuildDirectory)/Drop/gradlew'
11+
workingDirectory: '$(Agent.BuildDirectory)/Drop/'
1212
options: '-x jar -x javadoc -x javadocJar -x compileJava -x processResources -x classes -x sourceJar'
1313
tasks: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
1414
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+
buildType: 'current'
6+
artifactName: 'Drop'
7+
itemPattern: |
8+
**
9+
*
10+
targetPath: '$(Agent.BuildDirectory)/Drop/'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
steps:
2+
- pwsh: 'Invoke-WebRequest -Uri https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_windows_hotspot_16_36.zip -OutFile OpenJDK.zip'
3+
displayName: 'Download JDK'
4+
5+
- task: JavaToolInstaller@0
6+
inputs:
7+
versionSpec: '16'
8+
jdkArchitectureOption: 'x64'
9+
jdkSourceOption: 'LocalDirectory'
10+
jdkFile: 'OpenJDK.zip'
11+
jdkDestinationDirectory: 'binaries'

.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)