Add action
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new action in the pipeline
Request example
CURLcurl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/my-workspace/projects/my-project/pipelines/791/actions/1233", "html_url": "https://app.buddy.works/my-workspace/my-project/pipelines/pipeline/791/action/1233/edit", "id": 1233, "name": "mvn package", "type": "BUILD", "current_revision": "58e239079a2161fec0ba96ed166557157ad3dd79", "trigger_time": "ON_EVERY_EXECUTION", "run_next": "WAIT_ON_SUCCESS", "disabled": false, "ignore_errors": false, "pipeline": { "url": "https://api.buddy.works/workspaces/my-workspace/projects/my-project/pipelines/791", "html_url": "https://app.buddy.works/my-workspace/my-project/pipelines/pipeline/791", "id": 791, "identifier": "build", "name": "build", "definition_source": "LOCAL", "git_config_ref": "NONE", "refs": [ "refs/heads/master" ], "events": [ { "type": "WEBHOOK" } ], "priority": "NORMAL", "disabled": false, "last_execution_status": "SUCCESSFUL", "last_execution_revision": "58e239079a2161fec0ba96ed166557157ad3dd79", "always_from_scratch": false, "ignore_fail_on_project_status": false, "strict_context": false, "no_skip_to_most_recent": false, "terminate_stale_runs": false, "auto_clear_cache": false, "fetch_all_refs": false, "fail_on_prepare_env_warning": true, "concurrent_pipeline_runs": false, "do_not_create_commit_status": false, "stale": false, "waiting_for_push": false, "resources": "DEFAULT", "git_changeset_base": "LATEST_RUN", "filesystem_changeset_base": "DATE_MODIFIED", "cpu": "X64", "description_required": false }, "loop": [], "docker_image_name": "library/maven", "docker_image_tag": "3.9.9", "execute_commands": [ "mvn package" ], "mount_filesystem_disable": false, "volume_mappings": [ "/:/buddy/my-project" ], "cached_dirs": [ "/root/.m2/repository" ], "shell": "BASH", "region": "", "image_location": "PUBLIC_REGISTRY", "docker_registry": "DOCKER_HUB", "execute_every_command": false, "ignore_image_pull_failures": false, "cache_base_image": true, "reset_entrypoint": false, "vt_suite": "" }
STATUS200 OK