Jobs /
Get job build arguments
Deprecated
This endpoint is deprecated and will be removed in the future. Please avoid making requests to this endpoint.
Requests should instead use the relevant GET endpoint.
Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.
Required permission
Project > Secrets > Jobs > Read
Path parameters
projectId
string requiredID of the projectjobId
string requiredID of the job
Query parameters
show
stringWhich secrets to display - if set to `this` only the group's secrets are displayed, if set to `inherited` only secrets from linked addons are displayed, if set to `all` or not provided, both are displayed.one ofthis, inherited, allreplaceTemplatedValues
stringIf templated secrets should be replaced with their inferred value rather than returned as template strings.one oftrue
Response body
- {object}Response object.
data
{object} requiredResult data.buildArguments
{object} requiredThe build arguments, formatted as a JSON object. If the `show` parameter is set to `this`, this will only contain secrets saved to this entity. If the `show` parameter is set to `inherited`, this will only contain secrets inherited from linked secret groups. Otherwise, this will contain both.buildFiles
{object} requiredThe build secret files, formatted as a JSON object. If the `show` parameter is set to `this`, this will only contain files saved to this entity. If the `show` parameter is set to `inherited`, this will only contain files inherited from linked secret groups. Otherwise, this will contain both.
API
CLI
JS Client
GET /v1/projects/{projectId}/jobs/{jobId}/build-arguments
Example response
200 OK
The build arguments for the job.
JSON
{
"data": {
"buildArguments": {
"ARGUMENT_1": "abcdef",
"ARGUMENT_2": "12345"
},
"buildFiles": {
"/dir/fileName": {
"data": "VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=",
"encoding": "utf-8"
}
}
}
}