Azure
Learn more about:
POST Parameters
Name | Type | Description |
---|---|---|
name Required | String | The name of the action. |
type Required | String | The type of the action. Should be set to AZURE . |
push_url Required | String | The url to the repository. |
git_auth_mode Required | String | The authentication mode for Git Push. Should always be set to HTTP . |
login | String | The username required to connect to the server. |
password | String | The password required to connect to the server. |
use_custom_gitignore | Boolean | When set to false the push will ignore paths listed in .gitignore file. |
isolated | Boolean | When set to true , action will push only repository files (without artifacts). |
target_branch | String | Defines the remote branch to which the push will be performed. If empty, files will be pushed to the same branch. |
deployment_excludes | String[] | The paths and/or files that will be left out during the push. Only works when use_custom_gitignore is set to true . |
deployment_includes | String[] | The exceptions from the ignore patterns set in deployment_excludes . |
without_force | Boolean | Defines whether the --force flag should be used when invoking the git push command or not. |
Example
Request
POST https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions
JSON
{"name": "Push to Your Repo","type": "AZURE","git_auth_mode": "HTTP""trigger_time": "ON_EVERY_EXECUTION","push_url": "https://buddytestapp.scm.azurewebsites.net:443/BuddyTestApp.git","login": "api_tests_user","password": "api_tests_password","isolated": true,"target_branch": "stage""deployment_excludes": ["/tmp/","*.log"],"deployment_includes": ["/assets/style","/tmp/file.txt"],}
Sample Response
HTTP
Status: 201 CreatedX-Rate-Limit-Limit: 1X-Rate-Limit-Remaining: 999
JSON
{"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions/851","html_url": "https://app.buddy.works/buddy/company-website/pipelines/action/851/edit","id": 851,"name": "Push to Your Repo","type": "AZURE","git_auth_mode": "HTTP""trigger_time": "ON_EVERY_EXECUTION","last_execution_status": "INITIAL","deployment_excludes": ["/tmp/","*.log"],"deployment_includes": ["/assets/style","/tmp/file.txt"],"login": "api_tests_user","push_url": "https://buddytestapp.scm.azurewebsites.net:443/BuddyTestApp.git",,"push_tags": true,"pipeline": {"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2","html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2","id": 2,"name": "Live mirror","trigger_mode": "MANUAL","ref_name": "master","last_execution_status": "SUCCESSFUL","last_execution_revision": "506a3963507943d6908154f4bc9646e829128a08"}}