Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/GitVersionTfsTask/GitVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class GitVersionTask {
execOptions: tr.IExecOptions;

preferBundledVersion: boolean;
configFilePathSupplied: boolean;
configFilePath: string;
updateAssemblyInfo: boolean;

Expand All @@ -21,7 +22,8 @@ export class GitVersionTask {

constructor() {
this.preferBundledVersion = tl.getBoolInput('preferBundledVersion') || true;
this.configFilePath = tl.getPathInput('configFilePath');
this.configFilePathSupplied = tl.filePathSupplied('configFilePath');
this.configFilePath = tl.getPathInput('configFilePath', false, true);
this.updateAssemblyInfo = tl.getBoolInput('updateAssemblyInfo');

this.updateAssemblyInfoFilename = tl.getInput('updateAssemblyInfoFilename');
Expand Down Expand Up @@ -58,7 +60,7 @@ export class GitVersionTask {
"buildserver",
"/nofetch"]);

if (this.configFilePath) {
if (this.configFilePathSupplied && this.configFilePath) {
exe.arg(["/config", this.configFilePath]);
}

Expand Down