microsoft/azure-pipelines-extensions

'Download Artifacts - External TFS Git' v15.228.0 artifact download issue

Closed this issue · 4 comments

After 15.226.1 -> 15.228.0 update, Download Artifacts - External TFS Git execution failed with the error Unable to locate executable file: '/usr/bin/git' like this:

2023-09-11T11:36:55.0136472Z ##[section]Starting: Download artifact - mc-deploy (External TFS Git)
2023-09-11T11:36:55.0151032Z ==============================================================================
2023-09-11T11:36:55.0151726Z Task         : Download Artifacts - External TFS Git
2023-09-11T11:36:55.0152393Z Description  : Download TFS Git code repository using Git Clone
2023-09-11T11:36:55.0153124Z Version      : 15.228.0
2023-09-11T11:36:55.0153532Z Author       : ms-vscs-rm
2023-09-11T11:36:55.0154197Z Help         : [More Information](https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.vss-services-externaltfs)
2023-09-11T11:36:55.0154958Z ==============================================================================
2023-09-11T11:36:55.7429707Z ##[error]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2023-09-11T11:36:55.7444455Z ##[error]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2023-09-11T11:36:55.7451237Z ##[section]Finishing: Download artifact - mc-deploy (External TFS Git)

/usr/bin/git is actually present and executable.

Additional log with System.Debug set to true:

2023-09-11T12:54:12.8316544Z ##[debug]which '/usr/bin/git'
2023-09-11T12:54:12.8317881Z ##[debug]Unexpected error attempting to determine if executable file exists '/usr/bin/git': TypeError: path must be a string or Buffer
2023-09-11T12:54:12.8319037Z ##[debug]not found
2023-09-11T12:54:12.8358395Z ##[error]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2023-09-11T12:54:12.8372310Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2023-09-11T12:54:12.8374214Z ##[debug]task result: Failed
2023-09-11T12:54:12.8376917Z ##[error]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2023-09-11T12:54:12.8378757Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2023-09-11T12:54:12.8383274Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Unable to locate executable file: '/usr/bin/git'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

@victorosmov @shamil-mubarakshin thanks for reporting.
version 15.228.1 will fix this issue which is out now. Please rerun and confirm back.

If you don't mind, please share the complete debug logs of version 15.228.0 to v-mohithgc @microsoft.com

This issue is now resolved.
V228.1 will be containing the fix.
Feel free to reopen this issue if needed.

@victorosmov @shamil-mubarakshin, we are planning to release a new version of Download Artifacts - External TFS Git, on Tuesday (12-12-2023) which contains few minor improvements, can you please run the pipeline and let us know if anything unusual found?

Thanks