-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POM Restructuring Phase #1 #8242
Merged
mitchdenny
merged 30 commits into
Azure:master
from
mitchdenny:remove-modules-from-parent
Mar 19, 2020
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d037752
Remove modules from parent.
mitchdenny 315ab61
Add specific core modules.
mitchdenny 84ae1c3
Remove management package from list of packages to build.
mitchdenny e09a991
Swap to building against root pom.xml.
mitchdenny 6806b54
Removed commented out modules section.
mitchdenny 7d9a579
Remove perf stress module from module list.
mitchdenny 422b853
First attempt at a project list hack.
mitchdenny 47a06c2
COntinue project list hack.
mitchdenny eb1a81d
Extract steps into a template.
mitchdenny 2b8061f
Tweak quotes.
mitchdenny 06f4d87
Changes to make analyze use project list.
mitchdenny de8a204
Add project list to test jobs.
mitchdenny 5e2245b
Add install step which builds dependencies ahead of running tests.
mitchdenny cc255ef
Fix indentation.
mitchdenny 034491e
Bringing identity and appconfiguration into scope.
mitchdenny cec7573
Pulling all track 1 and track 2 modules into the root POM model.
mitchdenny 7bb0d38
Removed appinsights dir from root POM.
mitchdenny 4762998
Tweaks to data plane template.
mitchdenny eff4e5a
Try adding azure-storage-perf to artifact list.
mitchdenny 2f3747a
Make perf core a dependency of blob (HACK!).
mitchdenny d103219
Added dependency tags to perf-test-core and moved to storage common.
mitchdenny 2670b8b
HACK: Adding storage blob as a test dependency of azure-messaging-eve…
mitchdenny 3599c95
Fix version.
mitchdenny 91195a1
Fix log analytics build.
mitchdenny a2c0aea
Remove -amd switch.
mitchdenny 6705c09
Extra -amd switch removal.
mitchdenny 5a1c586
Removed CG manifest creation. Default behavior should work.
mitchdenny 66b1d52
Tweak test template for Cosmos.
mitchdenny 686baee
Fix up app config.
mitchdenny 42aeeb3
Respond to PR feedback.
mitchdenny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,12 +90,16 @@ jobs: | |
BuildSHA: $(Build.SourceVersion) | ||
RepoId: 'Azure/azure-sdk-for-java' | ||
|
||
- template: ../steps/generate-project-list.yml | ||
parameters: | ||
Artifacts: ${{parameters.Artifacts}} | ||
|
||
- task: Maven@3 | ||
displayName: 'Build and Package' | ||
inputs: | ||
mavenPomFile: sdk/${{parameters.ServiceDirectory}}/pom.service.xml | ||
mavenPomFile: pom.xml | ||
goals: 'package' | ||
options: '$(DefaultOptions) "-DpackageOutputDirectory=$(Build.ArtifactStagingDirectory)" -DskipTests -Dgenerate-overview' # We include template-module so we ensure it always builds in CI | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: end of line comment can be deleted. |
||
options: '$(DefaultOptions) "-DpackageOutputDirectory=$(Build.ArtifactStagingDirectory)" -DskipTests -Dgenerate-overview -pl $(ProjectList) -am -amd' # We include template-module so we ensure it always builds in CI | ||
mavenOptions: '$(MemoryOptions) $(LoggingOptions)' | ||
javaHomeOption: 'JDKVersion' | ||
jdkVersionOption: $(JavaVersion) | ||
|
@@ -150,11 +154,15 @@ jobs: | |
Options: --batch-mode | ||
MavenOptions: $(MemoryOptions) $(LoggingOptions) | ||
|
||
- template: ../steps/generate-project-list.yml | ||
parameters: | ||
Artifacts: ${{parameters.Artifacts}} | ||
|
||
- task: Maven@3 | ||
displayName: 'Install Module and Run SpotBugs, Checkstyle, RevApi, and Javadoc' | ||
inputs: | ||
mavenPomFile: sdk/${{parameters.ServiceDirectory}}/pom.service.xml | ||
options: '--no-transfer-progress -DskipTests -Dgpg.skip -Dverify-readme' | ||
mavenPomFile: pom.xml | ||
options: '--no-transfer-progress -DskipTests -Dgpg.skip -Dverify-readme -pl $(ProjectList) -am' | ||
mavenOptions: '$(MemoryOptions)' | ||
javaHomeOption: 'JDKVersion' | ||
jdkVersionOption: '1.11' | ||
|
@@ -186,6 +194,10 @@ jobs: | |
Options: --batch-mode | ||
MavenOptions: $(MemoryOptions) $(LoggingOptions) | ||
|
||
- template: ../steps/generate-project-list.yml | ||
parameters: | ||
Artifacts: ${{parameters.Artifacts}} | ||
|
||
- task: Maven@3 | ||
displayName: 'Start Jetty' | ||
condition: succeeded() | ||
|
@@ -204,8 +216,8 @@ jobs: | |
- task: Maven@3 | ||
displayName: 'Run tests' | ||
inputs: | ||
mavenPomFile: sdk/${{parameters.ServiceDirectory}}/pom.service.xml | ||
options: ${{ parameters.TestOptions }} | ||
mavenPomFile: pom.xml | ||
options: ${{ parameters.TestOptions }} -pl $(ProjectList) -am | ||
mavenOptions: '$(MemoryOptions) $(LoggingOptions)' | ||
javaHomeOption: 'JDKVersion' | ||
jdkVersionOption: $(JavaVersion) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This job template uses the artifact list in the ci.yml file | ||
# to generate a variable at build time that can be passed into | ||
# the Maven -pl command-line switch to constrain what subset of | ||
# projects are targetted based on the artifacts this pipeline | ||
mitchdenny marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# produces. The -am and -amd switches are then applied as | ||
# appropriate to constrain the full graph that is built depending | ||
# on whether we are doing a recorded test play back or a full live | ||
# test. | ||
|
||
steps: | ||
- pwsh: | | ||
Write-Host "##vso[task.setvariable variable=ProjectList;]" | ||
displayName: Initialize project list variable | ||
|
||
- ${{each artifact in parameters.Artifacts }}: | ||
- pwsh: | | ||
Write-Host "##vso[task.setvariable variable=ProjectList;]$(ProjectList),${{artifact.groupId}}:${{artifact.name}}" | ||
displayName: Append ${{artifact.groupId}}:${{artifact.name}} to project list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I don't think the comment at the end of the line is needed any longer.