Revert "Update task documentation logic."

This reverts commit a0d91de953.
This commit is contained in:
Shady Ibraheem
2019-12-18 17:35:47 -05:00
parent 3ac5793665
commit bab083711b
6 changed files with 30 additions and 12 deletions

View File

@@ -17,7 +17,9 @@ function ToolcacheTest {
[Parameter(Mandatory = $True)]
[string]$SoftwareName,
[Parameter(Mandatory = $True)]
[string[]]$ExecTests
[string[]]$ExecTests,
[Parameter(Mandatory = $True)]
[string]$Note
)
if (Test-Path "$env:AGENT_TOOLSDIRECTORY\$SoftwareName")
{
@@ -51,6 +53,7 @@ function ToolcacheTest {
}
}
$description += $Note
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $description
}
else
@@ -67,13 +70,25 @@ function ToolcacheTest {
}
# Python test
$PythonNote += @"
<br/>
> Note: These versions of Python are available through the [Use Python Version](https://go.microsoft.com/fwlink/?linkid=871498) task.
"@
$PythonTests = @("python.exe", "Scripts\pip.exe")
ToolcacheTest -SoftwareName "Python" -ExecTests $PythonTests
ToolcacheTest -SoftwareName "Python" -ExecTests $PythonTests -Note $PythonNote
# PyPy test
$PyPyNote += @"
<br/>
> Note: These versions of PyPy are available through the [Use Python Version](https://go.microsoft.com/fwlink/?linkid=871498) task.
"@
$PyPyTests = @("python.exe", "bin\pip.exe")
ToolcacheTest -SoftwareName "PyPy" -ExecTests $PyPyTests
ToolcacheTest -SoftwareName "PyPy" -ExecTests $PyPyTests -Note $PyPyNote
# Ruby test
$RubyNote += @"
<br/>
> Note: These versions of Ruby are available through the [Use Ruby Version](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/use-ruby-version) task.
"@
$RubyTests = @("bin\ruby.exe")
ToolcacheTest -SoftwareName "Ruby" -ExecTests $RubyTests
ToolcacheTest -SoftwareName "Ruby" -ExecTests $RubyTests -Note $RubyNote