File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Task("Artifacts-DotnetTool-Test")
23
23
24
24
foreach ( var dockerImage in parameters . Docker . Images )
25
25
{
26
- var cmd = $ "-file { rootPrefix } /scripts/Test-DotnetGlobalTool.ps1 -version { version } -repoPath { rootPrefix } /repo -nugetPath { rootPrefix } /nuget -toolPath { rootPrefix } /gitversion ";
26
+ var cmd = $ "-file { rootPrefix } /scripts/Test-DotnetGlobalTool.ps1 -version { version } -repoPath { rootPrefix } /repo -nugetPath { rootPrefix } /nuget";
27
27
28
28
DockerTestArtifact ( dockerImage , parameters , cmd ) ;
29
29
}
Original file line number Diff line number Diff line change 1
1
param (
2
2
[parameter (Mandatory = $true , Position = 0 )][string ] $version ,
3
3
[parameter (Mandatory = $true , Position = 1 )][string ] $nugetPath ,
4
- [parameter (Mandatory = $true , Position = 2 )][string ] $repoPath ,
5
- [parameter (Mandatory = $true , Position = 3 )][string ] $toolPath
4
+ [parameter (Mandatory = $true , Position = 2 )][string ] $repoPath
6
5
)
7
6
8
- $result = dotnet tool install GitVersion.Tool -- version $version -- tool- path $toolPath -- add-source $nugetPath | out-null ;
7
+ $result = dotnet tool install GitVersion.Tool -- version $version -- tool- path $rootPrefix / tools -- add-source $nugetPath | out-null ;
9
8
10
9
if ($LASTEXITCODE -eq 0 ) {
11
- & " $rootPrefix /gitversion /dotnet-gitversion" $repoPath / showvariable FullSemver;
10
+ & " $rootPrefix /tools /dotnet-gitversion" $repoPath / showvariable FullSemver;
12
11
} else {
13
12
Write-Output $result
14
13
}
You can’t perform that action at this time.
0 commit comments