regenerateSecretOfBuildCacheNode

@POST(value = "api/build-cache/nodes/{name}/secret")
abstract suspend fun regenerateSecretOfBuildCacheNode(@Path(value = "name") name: String): KeySecretPair

Regenerate the secret of a Build Cache Node. Regenerates the secret associated with the named Build Cache Node. The old secret expires immediately, causing the Build Cache Node to disconnect from Develocity. The Built-in Build Cache Node cannot be named as the target of this operation. Responses:

  • 200: The name referenced an existing Build Cache Node and that Build Cache Node's secret was regenerated.

  • 404: The referenced resource either does not exist or the permissions to know about it are missing.

  • 500: The server encountered an unexpected error.

Return

KeySecretPair

Parameters

name

The name of the Build Cache Node.