Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.
Updating the build task
Function
Updating the build task
Calling Method
For details, see Calling APIs.
URI
POST /v3/jobs/update
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Obtain the value by calling the IAM service interface. (value of X-Subject-Token in the response header). Global tenant tokens are not supported. Use a region-level token whose scope is project. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
arch |
Yes |
String |
Architecture Using Machines |
project_id |
Yes |
String |
ID of the project to which the build task belongs. |
job_name |
Yes |
String |
Task Name |
job_id |
Yes |
String |
Build task ID. |
auto_update_sub_module |
No |
String |
Indicates whether to automatically update submodules. |
flavor |
No |
String |
Executor Specifications |
parameters |
No |
Array of UpdateBuildJobParameter objects |
List of build execution parameters |
scms |
No |
Array of UpdateBuildJobScm objects |
Build Execution SCM |
steps |
Yes |
Array of UpdateBuildJobSteps objects |
Build Execution Steps |
host_type |
No |
String |
Host Type |
build_config_type |
No |
String |
Configuration Type |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
Parameter definition name. The default value is hudson.model.StringParameterDefinition. |
params |
No |
Array of UpdateBuildJobParameterParam objects |
Subparameters of Construction Execution Parameters |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
Parameter Field Name |
value |
No |
String |
Parameter Field Value |
limits |
No |
Array of LimitsParam objects |
Restrictions on Enumeration Parameters |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
disable |
No |
String |
Indicates whether the configuration takes effect. The default value is 0, indicating that the configuration takes effect. |
display_name |
No |
String |
Name of a parameter. |
name |
No |
String |
Parameter |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
branch |
No |
String |
Branch |
url |
Yes |
String |
Code Repository Address |
repo_id |
No |
String |
Specifies the Repo ID. |
web_url |
No |
String |
HTTP address of the code repository |
scm_type |
Yes |
String |
Repository type, such as Repo and GitHub. |
is_auto_build |
No |
Boolean |
Indicates whether to automatically build. |
build_type |
No |
String |
Build Type |
depth |
No |
String |
Clone Depth |
end_point_id |
No |
String |
endpointId |
source |
No |
String |
source |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
result object |
Result |
status |
String |
Status |
error |
String |
Error Message |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
Description |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
Description |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
Description |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
Description |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
Description |
Example Requests
POST https://{endpoint}/v3/jobs/update
Example Responses
Status code: 200
OK
{ "result" : { "job_id" : "db8467d972cc47f7a1bd2a3a3e77596a" }, "error" : null, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
Internal Server Error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.