public final class RequestProcessor extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.api.services.cloudbuild.v1.model.Build |
parseBuildRequest(String request)
Parses a YAML string representing a build request.
|
static hudson.util.FormValidation |
validateBuildRequest(String request)
Validates the build request.
|
public static com.google.api.services.cloudbuild.v1.model.Build parseBuildRequest(String request) throws IOException
request
- the YAML or JSON build request to parseIOException
- if an I/O error occurs while parsing the requestpublic static hudson.util.FormValidation validateBuildRequest(String request)
request
- the request to validateFormValidation
indicating whether the request is validCopyright © 2017–2021 Google. All rights reserved.