File tree 2 files changed +8
-1
lines changed
_generated/PythonScriptV0_IssueSourceEnabled
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { pythonScript } from './pythonscript';
5
5
( async ( ) => {
6
6
#if NODE20
7
7
let error : any | undefined ;
8
+ #elseif ISSUESOURCEENABLED //Duplicatation since the build config also based on NODE 20 and the task generator doesn't support multiple parameters
9
+ let error : any | undefined ;
8
10
#endif
9
11
try {
10
12
task . setResourcePath ( path . join ( __dirname , 'task.json' ) ) ;
@@ -22,6 +24,9 @@ import { pythonScript } from './pythonscript';
22
24
#if NODE20
23
25
error = e ;
24
26
task . setResult ( task . TaskResult . Failed , error . message ) ;
27
+ #elseif ISSUESOURCEENABLED
28
+ error = e ;
29
+ task . setResult ( task . TaskResult . Failed , error . message ) ;
25
30
#else
26
31
task . setResult ( task . TaskResult . Failed , e . message ) ;
27
32
#endif
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import * as task from 'azure-pipelines-task-lib/task';
3
3
import { pythonScript } from './pythonscript' ;
4
4
5
5
( async ( ) => {
6
+ let error : any | undefined ;
6
7
try {
7
8
task . setResourcePath ( path . join ( __dirname , 'task.json' ) ) ;
8
9
await pythonScript ( {
@@ -16,6 +17,7 @@ import { pythonScript } from './pythonscript';
16
17
} ) ;
17
18
task . setResult ( task . TaskResult . Succeeded , "" ) ;
18
19
} catch ( e ) {
19
- task . setResult ( task . TaskResult . Failed , e . message ) ;
20
+ error = e ;
21
+ task . setResult ( task . TaskResult . Failed , error . message ) ;
20
22
}
21
23
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments