Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rush] Build cache schema reconciliation #5010

Merged
merged 3 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Update schema for build-cache.json to include recent updates to the @rushstack/rush-azure-storage-build-cache-plugin.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"policyName": "rush",
"definitionName": "lockStepVersion",
"version": "5.141.0",
"nextBump": "minor",
"nextBump": "patch",
"mainProject": "@microsoft/rush"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,17 @@
/**
* If set to true, allow writing to the cache. Defaults to false.
*/
// "isCacheWriteAllowed": true
// "isCacheWriteAllowed": true,

/**
* The Entra ID login flow to use. Defaults to 'AdoCodespacesAuth' on GitHub Codespaces, 'InteractiveBrowser' otherwise.
*/
// "loginFlow": "InteractiveBrowser",

/**
* If set to true, reading the cache requires authentication. Defaults to false.
*/
// "readRequiresAuthentication": true
},

/**
Expand Down
9 changes: 9 additions & 0 deletions libraries/rush-lib/src/schemas/build-cache.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,22 @@
"description": "The Azure environment the storage account exists in. Defaults to AzurePublicCloud.",
"enum": ["AzurePublicCloud", "AzureChina", "AzureGermany", "AzureGovernment"]
},
"loginFlow": {
"type": "string",
"description": "The Entra ID login flow to use. Defaults to 'AdoCodespacesAuth' on GitHub Codespaces, 'InteractiveBrowser' otherwise.",
"enum": ["AdoCodespacesAuth", "InteractiveBrowser", "DeviceCode"]
},
"blobPrefix": {
"type": "string",
"description": "An optional prefix for cache item blob names."
},
"isCacheWriteAllowed": {
"type": "boolean",
"description": "If set to true, allow writing to the cache. Defaults to false."
},
"readRequiresAuthentication": {
"type": "boolean",
"description": "If set to true, reading the cache requires authentication. Defaults to false."
}
}
},
Expand Down
Loading