File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,26 @@ function Export-Pipescript {
50
50
51
51
$buildFileTemplate = $buildFile.Template
52
52
if ($buildFileTemplate -and $buildFile.PipeScriptType -ne ' Template' ) {
53
- Invoke-PipeScript $buildFileTemplate.Source
53
+ try {
54
+ Invoke-PipeScript $buildFileTemplate.Source
55
+ } catch {
56
+ $ex = $_
57
+ Write-Error - ErrorRecord $ex
58
+ }
54
59
$alreadyBuilt [$buildFileTemplate.Source ] = $true
55
60
}
56
61
57
62
$EventsFromThisBuild = Get-Event |
58
63
Where-Object TimeGenerated -gt $ThisBuildStartedAt |
59
- Where-Object SourceIdentifier -Like ' PipeScript. *'
64
+ Where-Object SourceIdentifier -Like ' * PipeScript*'
60
65
61
- Invoke-PipeScript $buildFile.Source
66
+ try {
67
+ Invoke-PipeScript $buildFile.Source
68
+ } catch {
69
+ $ex = $_
70
+ Write-Error - ErrorRecord $ex
71
+ }
72
+
62
73
$alreadyBuilt [$buildFile.Source ] = $true
63
74
}
64
75
You can’t perform that action at this time.
0 commit comments