diff --git a/eng/versioning/update_versions.py b/eng/versioning/update_versions.py index f5fb1e9b63b73..e7d01a5f9cb2b 100644 --- a/eng/versioning/update_versions.py +++ b/eng/versioning/update_versions.py @@ -252,7 +252,8 @@ def update_versions_all(update_type, build_type, target_file, skip_readme, auto_ if os.path.isfile(java_file_to_update): update_versions(update_type, version_map, ext_dep_map, java_file_to_update, skip_readme, auto_version_increment) else: - raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), java_file_to_update) + # In pipeline contexts, files not local to the current SDK directory may not be checked out from git. + print(java_file_to_update + ' does not exist. Skipping') else: print(version_java_file + ' does not exist. Skipping.') # END:Versions_in_java_files