|
| 1 | +--- |
| 2 | +title: Azure Devops |
| 3 | +description: Available Azure Devops triggers for automating workflows |
| 4 | +--- |
| 5 | + |
| 6 | +import { BlockInfoCard } from "@/components/ui/block-info-card" |
| 7 | + |
| 8 | +<BlockInfoCard |
| 9 | + type="azure_devops" |
| 10 | + color="#FFFFFF" |
| 11 | +/> |
| 12 | + |
| 13 | +Azure Devops provides 3 triggers for automating workflows based on events. |
| 14 | + |
| 15 | +## Triggers |
| 16 | + |
| 17 | +### Azure DevOps Build Failed |
| 18 | + |
| 19 | +Trigger workflow when an Azure DevOps build fails, is canceled, or partially succeeds |
| 20 | + |
| 21 | +#### Output |
| 22 | + |
| 23 | +| Parameter | Type | Description | |
| 24 | +| --------- | ---- | ----------- | |
| 25 | +| `buildId` | number | Build ID | |
| 26 | +| `buildNumber` | string | Build number string \(e.g. 20240101.1\) | |
| 27 | +| `result` | string | Build result: failed \| canceled \| partiallySucceeded | |
| 28 | +| `pipelineId` | number | Pipeline definition ID | |
| 29 | +| `pipelineName` | string | Pipeline definition name | |
| 30 | +| `projectName` | string | Azure DevOps project name | |
| 31 | +| `branch` | string | Source branch name \(refs/heads/ prefix stripped\) | |
| 32 | +| `commitSha` | string | Source commit SHA | |
| 33 | +| `triggeredBy` | string | Display name of the person who triggered the build | |
| 34 | +| `triggeredByEmail` | string | Email/unique name of the person who triggered the build | |
| 35 | +| `startTime` | string | Build start time \(ISO 8601\) | |
| 36 | +| `finishTime` | string | Build finish time \(ISO 8601\) | |
| 37 | +| `buildUrl` | string | API URL for the build resource | |
| 38 | + |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +### Azure DevOps Webhook (All Service Hook Events) |
| 43 | + |
| 44 | +Trigger on whichever service hook event types you configure in Azure DevOps. Sim does not filter deliveries for this trigger. |
| 45 | + |
| 46 | +#### Output |
| 47 | + |
| 48 | +| Parameter | Type | Description | |
| 49 | +| --------- | ---- | ----------- | |
| 50 | +| `eventType` | string | Service hook event type \(e.g. build.complete, workitem.created\) | |
| 51 | +| `notificationId` | number | Notification ID | |
| 52 | +| `subscriptionId` | string | Service hook subscription ID | |
| 53 | +| `publisherId` | string | Publisher ID \(e.g. tfs\) | |
| 54 | +| `createdDate` | string | Event creation time \(ISO 8601\) | |
| 55 | +| `resource` | json | Event resource payload | |
| 56 | +| `resourceContainers` | json | Resource container references \(project, collection, etc.\) | |
| 57 | +| `message` | json | Short message object | |
| 58 | +| `detailedMessage` | json | Detailed message object | |
| 59 | + |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +### Azure DevOps Work Item Created |
| 64 | + |
| 65 | +Trigger workflow when a work item is created in Azure DevOps |
| 66 | + |
| 67 | +#### Output |
| 68 | + |
| 69 | +| Parameter | Type | Description | |
| 70 | +| --------- | ---- | ----------- | |
| 71 | +| `workItemId` | number | Work item ID | |
| 72 | +| `workItemType` | string | Work item type for Basic process \(e.g. Issue, Task, Epic\) | |
| 73 | +| `title` | string | Work item title | |
| 74 | +| `state` | string | Work item state for Basic process \(e.g. To Do, Doing, Done\) | |
| 75 | +| `createdBy` | string | Display name of the creator | |
| 76 | +| `assignedTo` | string | Assignee display name, or empty string if unassigned | |
| 77 | +| `priority` | number | Priority \(1–4\), or 0 if not set | |
| 78 | +| `areaPath` | string | Area path | |
| 79 | +| `iterationPath` | string | Iteration path | |
| 80 | +| `description` | string | Work item description \(HTML\), or empty string if not set | |
| 81 | +| `projectName` | string | Azure DevOps project name | |
| 82 | +| `workItemUrl` | string | API URL for the work item resource | |
| 83 | + |
0 commit comments