Specify artifact path in YML to locate artifact files correctly (#45)

* Specify artifact path in YML to locate artifact files correctly

* Remove doc generation for now
This commit is contained in:
Danny Amirault 2020-03-25 12:41:15 -07:00 коммит произвёл GitHub
Родитель 7971d525df
Коммит 2708ca8f11
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 1 добавлений и 40 удалений

Просмотреть файл

@ -135,43 +135,3 @@ jobs:
inputs:
artifactName: packages
path: $(Build.ArtifactStagingDirectory)/packages
# Generate Documentation
- pwsh: |
$setupFile="doxygen-1.8.15-setup.exe";
Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://azuresdktooling.blob.core.windows.net/dependencies/doxygen-1.8.15-setup.exe" `
-OutFile $setupFile | Wait-Process; Start-Process -Filepath .\$setupFile -ArgumentList @("/VERYSILENT") -Wait
workingDirectory: $(Agent.TempDirectory)
displayName: Download and Install Doxygen
- ${{ each artifact in parameters.Artifacts }}:
- pwsh: Write-Host "##vso[task.setvariable variable=PackageVersion]$(Get-Content .\sdk\${{ parameters.ServiceDirectory }}\${{ artifact.Path }}\version.txt)"
displayName: Set $(PackageVersion) from version.txt file - ${{ artifact.Name }}
- pwsh: >-
python eng/docs/api/generate_docs.py
--TemplateFile="eng/docs/api/Doxyfile.template"
--PackagePath="sdk/${{ parameters.ServiceDirectory }}/${{ artifact.Path }}"
--PackageName="${{ artifact.Name }}"
--PackageVersion="$(PackageVersion)"
--AssetsPath="eng/docs/api/assets"
--DoxygenPath="c:\\program files\\doxygen\\bin\\doxygen.exe"
displayName: Generate docs - ${{ artifact.Name }}
- pwsh: New-Item -ItemType directory -Path $(Build.ArtifactStagingDirectory) -Name docs/${{ artifact.Name }}
displayName: Create doc artifact location - ${{ artifact.Name }}
- task: CopyFiles@2
inputs:
sourceFolder: sdk/${{ parameters.ServiceDirectory }}/${{ artifact.Path }}/html
targetFolder: $(Build.ArtifactStagingDirectory)/docs/${{ artifact.Name }}
displayName: Copy documentation - ${{ artifact.Name }}
- pwsh: |
$packageInfoPath = Join-Path -Path $(Build.ArtifactStagingDirectory) packages/${{ artifact.Name }}/package-info.json
Copy-Item -Path $packageInfoPath -Destination $(Build.ArtifactStagingDirectory)/docs/${{ artifact.Name }}/package-info.json
displayName: Copy package-info.json to documentation path
- task: PublishPipelineArtifact@1
inputs:
artifactName: docs
path: $(Build.ArtifactStagingDirectory)/docs

Просмотреть файл

@ -22,3 +22,4 @@ stages:
ServiceDirectory: core
Artifacts:
- Name: azure-core
Path: azure-core