@@ -397,37 +397,37 @@ If ($StaticAnalysis)
397
397
$FailedTasks = @ ()
398
398
$ErrorLogPath = " $StaticAnalysisOutputDirectory /error.log"
399
399
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisBreakingChange @Parameters 2> $ErrorLogPath
400
- If ($LASTEXITCODE -ne 0 )
400
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
401
401
{
402
402
$FailedTasks += " BreakingChange"
403
403
}
404
404
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisDependency @Parameters 2>> $ErrorLogPath
405
- If ($LASTEXITCODE -ne 0 )
405
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
406
406
{
407
407
$FailedTasks += " Dependency"
408
408
}
409
409
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisSignature @Parameters 2>> $ErrorLogPath
410
- If ($LASTEXITCODE -ne 0 )
410
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
411
411
{
412
412
$FailedTasks += " Signature"
413
413
}
414
414
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisHelp @Parameters 2>> $ErrorLogPath
415
- If ($LASTEXITCODE -ne 0 )
415
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
416
416
{
417
417
$FailedTasks += " Help"
418
418
}
419
419
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisUX @Parameters 2>> $ErrorLogPath
420
- If ($LASTEXITCODE -ne 0 )
420
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
421
421
{
422
422
$FailedTasks += " UXMetadata"
423
423
}
424
424
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisCmdletDiff @Parameters 2>> $ErrorLogPath
425
- If ($LASTEXITCODE -ne 0 )
425
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
426
426
{
427
427
$FailedTasks += " CmdletDiff"
428
428
}
429
429
.(" $PSScriptRoot /ExecuteCIStep.ps1" ) - StaticAnalysisGeneratedSdk @Parameters 2>> $ErrorLogPath
430
- If ($LASTEXITCODE -ne 0 )
430
+ If (( $LASTEXITCODE -ne 0 ) -and ( $LASTEXITCODE -ne $null ) )
431
431
{
432
432
$FailedTasks += " GenertedSdk"
433
433
}
@@ -437,7 +437,7 @@ If ($StaticAnalysis)
437
437
$ErrorLog = Get-Content - Path $ErrorLogPath | Join-String - Separator " `n "
438
438
Write-Error $ErrorLog
439
439
}
440
- Return
440
+ Return 0
441
441
}
442
442
443
443
If ($StaticAnalysisBreakingChange )
@@ -459,7 +459,7 @@ If ($StaticAnalysisBreakingChange)
459
459
Return $LASTEXITCODE
460
460
}
461
461
}
462
- Return
462
+ Return 0
463
463
}
464
464
If ($StaticAnalysisDependency )
465
465
{
@@ -481,7 +481,7 @@ If ($StaticAnalysisDependency)
481
481
}
482
482
.($PSScriptRoot + " /CheckAssemblies.ps1" ) - BuildConfig $Configuration
483
483
}
484
- Return
484
+ Return 0
485
485
}
486
486
487
487
If ($StaticAnalysisSignature )
@@ -503,7 +503,7 @@ If ($StaticAnalysisSignature)
503
503
Return $LASTEXITCODE
504
504
}
505
505
}
506
- Return
506
+ Return 0
507
507
}
508
508
509
509
If ($StaticAnalysisHelp )
@@ -525,7 +525,7 @@ If ($StaticAnalysisHelp)
525
525
Return $LASTEXITCODE
526
526
}
527
527
}
528
- Return
528
+ Return 0
529
529
}
530
530
531
531
If ($StaticAnalysisUX )
@@ -547,7 +547,7 @@ If ($StaticAnalysisUX)
547
547
Return $LASTEXITCODE
548
548
}
549
549
}
550
- Return
550
+ Return 0
551
551
}
552
552
553
553
If ($StaticAnalysisCmdletDiff )
@@ -569,7 +569,7 @@ If ($StaticAnalysisCmdletDiff)
569
569
Return $LASTEXITCODE
570
570
}
571
571
}
572
- Return
572
+ Return 0
573
573
}
574
574
575
575
If ($StaticAnalysisGeneratedSdk )
@@ -592,5 +592,5 @@ If ($StaticAnalysisGeneratedSdk)
592
592
Return $LASTEXITCODE
593
593
}
594
594
}
595
- Return
595
+ Return 0
596
596
}
0 commit comments