Skip to content

Commit

Permalink
Merge d14c390 into ecfbba2
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored Apr 23, 2024
2 parents ecfbba2 + d14c390 commit 2505f8e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 33 deletions.
19 changes: 5 additions & 14 deletions eng/pipelines/templates/stages/archetype-java-release-batch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ stages:
- download: current
displayName: 'Download Artifact: ${{parameters.ArtifactName}}'
artifact: ${{parameters.ArtifactName}}

- template: /eng/pipelines/templates/steps/mvn-linux-repository-settings.yml

- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
PackageInfoLocations:
Expand Down Expand Up @@ -479,20 +482,8 @@ stages:
- pwsh: |
Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/
displayName: Show visible artifacts
# Docs daily updates is supposed to download packages from public feed repository, so we have to specify additional repositories in a POM or the profile.
# Here is maven documentation: https://maven.apache.org/guides/mini/guide-multiple-repositories.html
- powershell: |
# Linux mvn `setting.xml` is sitting under path `~/.m2/setting.xml`
Get-Command mvn
if (!(Test-Path '~/.m2/')) {
mkdir ~/.m2/
}
if (Test-Path '~/.m2/setting.xml') {
Write-Host "'setting.xml' exists. Overwriting the file to support multiple repositories."
}
Copy-Item "./eng/repo-docs/docms/daily.update.setting.xml" -Destination "~/.m2/settings.xml"
displayName: 'Configure mvn'
workingDirectory: $(Build.SourcesDirectory)
- template: /eng/pipelines/templates/steps/mvn-linux-repository-settings.yml

- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ stages:
- download: current
displayName: 'Download Artifact: ${{parameters.ArtifactName}}'
artifact: ${{parameters.ArtifactName}}

- template: /eng/pipelines/templates/steps/mvn-linux-repository-settings.yml

- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
PackageInfoLocations:
Expand Down
19 changes: 5 additions & 14 deletions eng/pipelines/templates/stages/archetype-java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ stages:
displayName: 'Download Artifact: ${{parameters.ArtifactName}}'
artifact: ${{parameters.ArtifactName}}
# Pull and build the docker image.

- template: /eng/pipelines/templates/steps/mvn-linux-repository-settings.yml

- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
PackageInfoLocations:
Expand Down Expand Up @@ -460,20 +463,8 @@ stages:
- pwsh: |
Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/
displayName: Show visible artifacts
# Docs daily updates is supposed to download packages from public feed repository, so we have to specify additional repositories in a POM or the profile.
# Here is maven documentation: https://maven.apache.org/guides/mini/guide-multiple-repositories.html
- powershell: |
# Linux mvn `setting.xml` is sitting under path `~/.m2/setting.xml`
Get-Command mvn
if (!(Test-Path '~/.m2/')) {
mkdir ~/.m2/
}
if (Test-Path '~/.m2/setting.xml') {
Write-Host "'setting.xml' exists. Overwriting the file to support multiple repositories."
}
Copy-Item "./eng/repo-docs/docms/daily.update.setting.xml" -Destination "~/.m2/settings.xml"
displayName: 'Configure mvn'
workingDirectory: $(Build.SourcesDirectory)
- template: /eng/pipelines/templates/steps/mvn-linux-repository-settings.yml

- template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml
parameters:
Expand Down
22 changes: 22 additions & 0 deletions eng/pipelines/templates/steps/mvn-linux-repository-settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
steps:
# /eng/repo-docs/docms/daily.update.setting.xml contains two settings
# 1. The java dev feed - This is for nightly builds and official builds, both of which publish
# to the dev feed. In the case of official builds, setting this up prevents us from having
# to deal with sonatype which may have a delay before what was just published is available.
# The dev feed does not have the same delay that sonatype does.
# 2. The docs-public-packages dev feed. This is where the docs java library, java2docfx is
# published. Nightly builds and official releases are published here and, while official releases
# are also published to sonatype, it's better to hit the public dev feed whenever possible.
# Here is maven documentation: https://maven.apache.org/guides/mini/guide-multiple-repositories.html
- powershell: |
# Linux mvn `setting.xml` is sitting under path `~/.m2/setting.xml`
Get-Command mvn
if (!(Test-Path '~/.m2/')) {
mkdir ~/.m2/
}
if (Test-Path '~/.m2/setting.xml') {
Write-Host "'setting.xml' exists. Overwriting the file to support multiple repositories."
}
Copy-Item "./eng/repo-docs/docms/daily.update.setting.xml" -Destination "~/.m2/settings.xml"
displayName: 'Configure mvn repo settings on linux'
workingDirectory: $(Build.SourcesDirectory)
4 changes: 2 additions & 2 deletions eng/scripts/docs/Docs-ToC.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function Get-Toc-Children($package, $docRepoLocation) {
}
}
# Sort the array and clean out any dupes (there shouldn't be any but better safe than sorry)
$namespaces = $namespaces | Sort-Object -Unique
$namespaces = @($namespaces | Sort-Object -Unique)
# Ensure that this always returns an array, even if there's one item or 0 items
Write-Output -NoEnumerate $namespaces
}
Expand Down Expand Up @@ -221,7 +221,7 @@ function Fetch-Namespaces-From-Javadoc($package, $groupId, $version) {
}
}

$namespaces = $namespaces | Sort-Object -Unique
$namespaces = @($namespaces | Sort-Object -Unique)
# Make sure this always returns an array
Write-Output -NoEnumerate $namespaces
}
Expand Down
6 changes: 3 additions & 3 deletions sdk/template/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ extends:
groupId: com.azure
safeName: azuresdktemplate
releaseInBatch: ${{ parameters.release_azuresdktemplate }}
skipPublishDocMs: true
#skipPublishDocMs: true
- name: azure-sdk-template-two
groupId: com.azure
safeName: azuresdktemplatetwo
releaseInBatch: ${{ parameters.release_azuresdktemplatetwo }}
skipPublishDocMs: true
#skipPublishDocMs: true
- name: azure-sdk-template-three
groupId: com.azure
safeName: azuresdktemplatethree
releaseInBatch: ${{ parameters.release_azuresdktemplatethree }}
skipPublishDocMs: true
#skipPublishDocMs: true
AdditionalModules:
- name: azure-template-perf
groupId: com.azure
Expand Down

0 comments on commit 2505f8e

Please sign in to comment.