Jobs /
Get job build arguments
Required permission
Project > Jobs > Configuration > View Build Parameters
Path parameters
projectId
string requiredID of the project
jobId
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 toinherited
only secrets from linked addons are displayed, if set toall
or not provided, both are displayed.one ofthis, inherited, all
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 tothis
, this will only contain secrets saved to this entity. If theshow
parameter is set toinherited
, 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 tothis
, this will only contain files saved to this entity. If theshow
parameter is set toinherited
, this will only contain files inherited from linked secret groups. Otherwise, this will contain both.
GET /v1/projects/{projectId}/jobs/{jobId}/build-arguments
Example response
200 OK
JSON
{
"data": {
"buildArguments": {
"ARGUMENT_1": "abcdef",
"ARGUMENT_2": "12345"
},
"buildFiles": {
"/dir/fileName": {
"data": "VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=",
"encoding": "utf-8"
}
}
}
}