File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export class GitVersionTask {
7
7
execOptions : tr . IExecOptions ;
8
8
9
9
preferBundledVersion : boolean ;
10
+ configFilePathSupplied : boolean ;
10
11
configFilePath : string ;
11
12
updateAssemblyInfo : boolean ;
12
13
@@ -21,7 +22,8 @@ export class GitVersionTask {
21
22
22
23
constructor ( ) {
23
24
this . preferBundledVersion = tl . getBoolInput ( 'preferBundledVersion' ) || true ;
24
- this . configFilePath = tl . getPathInput ( 'configFilePath' ) ;
25
+ this . configFilePathSupplied = tl . filePathSupplied ( 'configFilePath' ) ;
26
+ this . configFilePath = tl . getPathInput ( 'configFilePath' , false , true ) ;
25
27
this . updateAssemblyInfo = tl . getBoolInput ( 'updateAssemblyInfo' ) ;
26
28
27
29
this . updateAssemblyInfoFilename = tl . getInput ( 'updateAssemblyInfoFilename' ) ;
@@ -58,7 +60,7 @@ export class GitVersionTask {
58
60
"buildserver" ,
59
61
"/nofetch" ] ) ;
60
62
61
- if ( this . configFilePath ) {
63
+ if ( this . configFilePathSupplied && this . configFilePath ) {
62
64
exe . arg ( [ "/config" , this . configFilePath ] ) ;
63
65
}
64
66
You can’t perform that action at this time.
0 commit comments