All URIs are relative to https://api.bitbucket.org/2.0
Method | HTTP request | Description |
---|---|---|
CreatePipelineForRepository | Post /repositories/{username}/{repo_slug}/pipelines/ | |
CreatePipelineVariableForTeam | Post /teams/{username}/pipelines_config/variables/ | |
CreatePipelineVariableForUser | Post /users/{username}/pipelines_config/variables/ | |
CreateRepositoryPipelineKnownHost | Post /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/ | |
CreateRepositoryPipelineSchedule | Post /repositories/{username}/{repo_slug}/pipelines_config/schedules/ | |
CreateRepositoryPipelineVariable | Post /repositories/{username}/{repo_slug}/pipelines_config/variables/ | |
DeletePipelineVariableForTeam | Delete /teams/{username}/pipelines_config/variables/{variable_uuid} | |
DeletePipelineVariableForUser | Delete /users/{username}/pipelines_config/variables/{variable_uuid} | |
DeleteRepositoryPipelineKeyPair | Delete /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair | |
DeleteRepositoryPipelineKnownHost | Delete /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} | |
DeleteRepositoryPipelineSchedule | Delete /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} | |
DeleteRepositoryPipelineVariable | Delete /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid} | |
GetPipelineForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid} | |
GetPipelineStepForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid} | |
GetPipelineStepLogForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/log | |
GetPipelineStepsForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/ | |
GetPipelineVariableForTeam | Get /teams/{username}/pipelines_config/variables/{variable_uuid} | |
GetPipelineVariableForUser | Get /users/{username}/pipelines_config/variables/{variable_uuid} | |
GetPipelineVariablesForTeam | Get /teams/{username}/pipelines_config/variables/ | |
GetPipelineVariablesForUser | Get /users/{username}/pipelines_config/variables/ | |
GetPipelinesForRepository | Get /repositories/{username}/{repo_slug}/pipelines/ | |
GetRepositoryPipelineConfig | Get /repositories/{username}/{repo_slug}/pipelines_config | |
GetRepositoryPipelineKnownHost | Get /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} | |
GetRepositoryPipelineKnownHosts | Get /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/ | |
GetRepositoryPipelineSchedule | Get /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} | |
GetRepositoryPipelineScheduleExecutions | Get /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}/executions/ | |
GetRepositoryPipelineSchedules | Get /repositories/{username}/{repo_slug}/pipelines_config/schedules/ | |
GetRepositoryPipelineSshKeyPair | Get /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair | |
GetRepositoryPipelineVariable | Get /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid} | |
GetRepositoryPipelineVariables | Get /repositories/{username}/{repo_slug}/pipelines_config/variables/ | |
StopPipeline | Post /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline | |
UpdatePipelineVariableForTeam | Put /teams/{username}/pipelines_config/variables/{variable_uuid} | |
UpdatePipelineVariableForUser | Put /users/{username}/pipelines_config/variables/{variable_uuid} | |
UpdateRepositoryBuildNumber | Put /repositories/{username}/{repo_slug}/pipelines_config/build_number | |
UpdateRepositoryPipelineConfig | Put /repositories/{username}/{repo_slug}/pipelines_config | |
UpdateRepositoryPipelineKeyPair | Put /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair | |
UpdateRepositoryPipelineKnownHost | Put /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} | |
UpdateRepositoryPipelineSchedule | Put /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} | |
UpdateRepositoryPipelineVariable | Put /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid} |
Pipeline CreatePipelineForRepository(ctx, username, repoSlug, body)
Endpoint to create and initiate a pipeline. There are a couple of different options to initiate a pipeline, where the payload of the request will determine which type of pipeline will be instantiated. # Trigger a Pipeline for a branch One way to trigger pipelines is by specifying the branch for which you want to trigger a pipeline. The specified branch will be used to determine which pipeline definition from the bitbucket-pipelines.yml
file will be applied to initiate the pipeline. The pipeline will then do a clone of the repository and checkout the latest revision of the specified branch. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"ref_type\": \"branch\", \"type\": \"pipeline_ref_target\", \"ref_name\": \"master\" } }'
# Trigger a Pipeline for a commit on a branch or tag You can initiate a pipeline for a specific commit and in the context of a specified reference (e.g. a branch, tag or bookmark). The specified reference will be used to determine which pipeline definition from the bitbucket-pipelines.yml file will be applied to initiate the pipeline. The pipeline will clone the repository and then do a checkout the specified reference. The following reference types are supported: * branch
* named_branch
* bookmark
* tag
### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ce5b7431602f7cbba007062eeb55225c6e18e956\" }, \"ref_type\": \"branch\", \"type\": \"pipeline_ref_target\", \"ref_name\": \"master\" } }'
# Trigger a specific pipeline definition for a commit You can trigger a specific pipeline that is defined in your bitbucket-pipelines.yml
file for a specific commit. In addition to the commit revision, you specify the type and pattern of the selector that identifies the pipeline definition. The resulting pipeline will then clone the repository and checkout the specified revision. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"commit\": { \"hash\":\"a3c4e02c9a3755eccdc3764e6ea13facdf30f923\", \"type\":\"commit\" }, \"selector\": { \"type\":\"custom\", \"pattern\":\"Deploy to production\" }, \"type\":\"pipeline_commit_target\" } }'
# Trigger a specific pipeline definition for a commit on a branch or tag You can trigger a specific pipeline that is defined in your bitbucket-pipelines.yml
file for a specific commit in the context of a specified reference. In addition to the commit revision, you specify the type and pattern of the selector that identifies the pipeline definition, as well as the reference information. The resulting pipeline will then clone the repository a checkout the specified reference. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"commit\": { \"hash\":\"a3c4e02c9a3755eccdc3764e6ea13facdf30f923\", \"type\":\"commit\" }, \"selector\": { \"type\": \"custom\", \"pattern\": \"Deploy to production\" }, \"type\": \"pipeline_ref_target\", \"ref_name\": \"master\", \"ref_type\": \"branch\" } }'
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | Pipeline | The pipeline to initiate. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable CreatePipelineVariableForTeam(ctx, username, optional)
Create an account level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
username | string | The account. | |
body | PipelineVariable | The variable to create. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable CreatePipelineVariableForUser(ctx, username, optional)
Create a user level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
username | string | The account. | |
body | PipelineVariable | The variable to create. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineKnownHost CreateRepositoryPipelineKnownHost(ctx, username, repoSlug, body)
Create a repository level known host.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | PipelineKnownHost | The known host to create. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineSchedule CreateRepositoryPipelineSchedule(ctx, username, repoSlug, body)
Create a schedule for the given repository.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | PipelineSchedule | The schedule to create. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable CreateRepositoryPipelineVariable(ctx, username, repoSlug, body)
Create a repository level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | PipelineVariable | The variable to create. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePipelineVariableForTeam(ctx, username, variableUuid)
Delete a team level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
variableUuid | string | The UUID of the variable to delete. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePipelineVariableForUser(ctx, username, variableUuid)
Delete an account level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
variableUuid | string | The UUID of the variable to delete. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRepositoryPipelineKeyPair(ctx, username, repoSlug)
Delete the repository SSH key pair.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRepositoryPipelineKnownHost(ctx, username, repoSlug, knownHostUuid)
Delete a repository level known host.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
knownHostUuid | string | The UUID of the known host to delete. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRepositoryPipelineSchedule(ctx, username, repoSlug, scheduleUuid)
Delete a schedule.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
scheduleUuid | string | The uuid of the schedule. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRepositoryPipelineVariable(ctx, username, repoSlug, variableUuid)
Delete a repository level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
variableUuid | string | The UUID of the variable to delete. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Pipeline GetPipelineForRepository(ctx, username, repoSlug, pipelineUuid)
Retrieve a specified pipeline
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
pipelineUuid | string | The pipeline UUID. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineStep GetPipelineStepForRepository(ctx, username, repoSlug, pipelineUuid, stepUuid)
Retrieve a given step of a pipeline.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
pipelineUuid | string | The UUID of the pipeline. | |
stepUuid | string | The UUID of the step. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPipelineStepLogForRepository(ctx, username, repoSlug, pipelineUuid, stepUuid)
Retrieve the log file for a given step of a pipeline. This endpoint supports (and encourages!) the use of HTTP Range requests to deal with potentially very large log files.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
pipelineUuid | string | The UUID of the pipeline. | |
stepUuid | string | The UUID of the step. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineSteps GetPipelineStepsForRepository(ctx, username, repoSlug, pipelineUuid)
Find steps for the given pipeline.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
pipelineUuid | string | The UUID of the pipeline. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable GetPipelineVariableForTeam(ctx, username, variableUuid)
Retrieve a team level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
variableUuid | string | The UUID of the variable to retrieve. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable GetPipelineVariableForUser(ctx, username, variableUuid)
Retrieve a user level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
variableUuid | string | The UUID of the variable to retrieve. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineVariables GetPipelineVariablesForTeam(ctx, username)
Find account level variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineVariables GetPipelineVariablesForUser(ctx, username)
Find user level variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelines GetPipelinesForRepository(ctx, username, repoSlug)
Find pipelines
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelinesConfig GetRepositoryPipelineConfig(ctx, username, repoSlug)
Retrieve the repository pipelines configuration.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineKnownHost GetRepositoryPipelineKnownHost(ctx, username, repoSlug, knownHostUuid)
Retrieve a repository level known host.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
knownHostUuid | string | The UUID of the known host to retrieve. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineKnownHosts GetRepositoryPipelineKnownHosts(ctx, username, repoSlug)
Find repository level known hosts.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineSchedule GetRepositoryPipelineSchedule(ctx, username, repoSlug, scheduleUuid)
Retrieve a schedule by its UUID.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
scheduleUuid | string | The uuid of the schedule. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineScheduleExecutions GetRepositoryPipelineScheduleExecutions(ctx, username, repoSlug)
Retrieve the executions of a given schedule.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
PaginatedPipelineScheduleExecutions
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineSchedules GetRepositoryPipelineSchedules(ctx, username, repoSlug)
Retrieve the configured schedules for the given repository.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineSshKeyPair GetRepositoryPipelineSshKeyPair(ctx, username, repoSlug)
Retrieve the repository SSH key pair excluding the SSH private key. The private key is a write only field and will never be exposed in the logs or the REST API.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable GetRepositoryPipelineVariable(ctx, username, repoSlug, variableUuid)
Retrieve a repository level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
variableUuid | string | The UUID of the variable to retrieve. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedPipelineVariables GetRepositoryPipelineVariables(ctx, username, repoSlug)
Find repository level variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StopPipeline(ctx, username, repoSlug, pipelineUuid)
Signal the stop of a pipeline and all of its steps that not have completed yet.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
pipelineUuid | string | The UUID of the pipeline. |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable UpdatePipelineVariableForTeam(ctx, username, variableUuid, body)
Update a team level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
variableUuid | string | The UUID of the variable. | |
body | PipelineVariable | The updated variable. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable UpdatePipelineVariableForUser(ctx, username, variableUuid, body)
Update a user level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
variableUuid | string | The UUID of the variable. | |
body | PipelineVariable | The updated variable. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineBuildNumber UpdateRepositoryBuildNumber(ctx, username, repoSlug, body)
Update the next build number that should be assigned to a pipeline. The next build number that will be configured has to be strictly higher than the current latest build number for this repository.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | PipelineBuildNumber | The build number to update. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelinesConfig UpdateRepositoryPipelineConfig(ctx, username, repoSlug, body)
Update the pipelines configuration for a repository.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | PipelinesConfig | The updated repository pipelines configuration. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineSshKeyPair UpdateRepositoryPipelineKeyPair(ctx, username, repoSlug, body)
Create or update the repository SSH key pair. The private key will be set as a default SSH identity in your build container.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
body | PipelineSshKeyPair | The created or updated SSH key pair. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineKnownHost UpdateRepositoryPipelineKnownHost(ctx, username, repoSlug, knownHostUuid, body)
Update a repository level known host.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
knownHostUuid | string | The UUID of the known host to update. | |
body | PipelineKnownHost | The updated known host. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineSchedule UpdateRepositoryPipelineSchedule(ctx, username, repoSlug, scheduleUuid, body)
Update a schedule.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
scheduleUuid | string | The uuid of the schedule. | |
body | PipelineSchedule | The schedule to update. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PipelineVariable UpdateRepositoryPipelineVariable(ctx, username, repoSlug, variableUuid, body)
Update a repository level variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The account. | |
repoSlug | string | The repository. | |
variableUuid | string | The UUID of the variable to update. | |
body | PipelineVariable | The updated variable |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]