You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
try {
tl.setVariable(hash, "true");
// only if tar succeeds should we indicateit succeeded
const success = shell.exec(`tar -xzf ${tarballPath} -C "${destinationFolder}"`).code == 0);
// Set variable to track whether or not we downloaded cache (i.e. it already existed)
tl.setVariable(output, success ? "true" : "false");
return;
}
} catch (err) {
console.log(err);
}
This log shows that the message
tar: Error opening archive: Failed to open. Clearly the task did not succeed, but it is marked as such.I believe the fault is with the failure to check the return code when calling tar in cacheUtilities.downloadCaches
azure-pipelines-artifact-caching-tasks/Tasks/Common/packaging-common/cache/cacheUtilities.ts
Line 91 in 7b16b67