Commit 4fa0f13 1 parent 09b1e1c commit 4fa0f13 Copy full SHA for 4fa0f13
File tree 2 files changed +6
-13
lines changed
eng/ci/templates/public/jobs
2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
- $projectPath = " .\src\Azure.Functions.Cli"
2
1
$projectFileName = " .\Azure.Functions.Cli.csproj"
3
2
$logFilePath = " ..\..\build.log"
4
3
$skipCveFilePath = " ..\..\skipPackagesCve.json"
5
- if (-not (Test-Path $projectPath ))
6
- {
7
- throw " Project path '$projectPath ' does not exist."
8
- }
9
4
10
- cd $projectPath
11
5
12
6
$cmd = " restore"
13
7
Write-Host " dotnet $cmd "
@@ -62,6 +56,4 @@ $logFileExists = Test-Path $logFilePath -PathType Leaf
62
56
if ($logFileExists )
63
57
{
64
58
Remove-Item $logFilePath
65
- }
66
-
67
- cd ../ ..
59
+ }
Original file line number Diff line number Diff line change @@ -43,10 +43,11 @@ jobs:
43
43
- pwsh : |
44
44
.\validateWorkerVersions.ps1
45
45
displayName: 'Validate worker versions'
46
- - pwsh : |
47
- .\check-vulnerabilities.ps1
48
- displayName: "Check for security vulnerabilities"
49
- condition: ne(variables['skipWorkerVersionValidation'], 'true')
46
+ - task : PowerShell@2
47
+ displayName : " Run Check Vulnerabilities Script"
48
+ inputs :
49
+ filePath : ' ./checkVulnerabilities.ps1'
50
+ workingDirectory : ' ./src/Azure.Functions.Cli'
50
51
- pwsh : |
51
52
.\build.ps1
52
53
env:
You can’t perform that action at this time.
0 commit comments