Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<details>

<summary> Port port-app-config.yml </summary>
<summary><b>Port port-app-config.yml (Click to expand)</b></summary>

```yaml showLineNumbers
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<details>

<summary> Integration mapping </summary>
<summary><b>Integration mapping (Click to expand)</b></summary>

```yaml showLineNumbers
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary>Pull request blueprint</summary>
<summary><b>Pull request blueprint (click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary>Repository blueprint</summary>
<summary><b>Repository blueprint (click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
- [`work-item`](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query-by-wiql?view=azure-devops-rest-7.1&tabs=HTTP)
- [`board`](https://learn.microsoft.com/en-us/rest/api/azure/devops/work/boards/list?view=azure-devops-rest-7.1)
- [`release`](https://learn.microsoft.com/en-us/rest/api/azure/devops/release/releases?view=azure-devops-rest-7.1)
- [`environment`](https://learn.microsoft.com/en-us/rest/api/azure/devops/distributedtask/environments/list?view=azure-devops-rest-7.1&tabs=HTTP)
- [`release-deployment`](https://learn.microsoft.com/en-us/rest/api/azure/devops/release/deployments/list?view=azure-devops-rest-7.1&tabs=HTTP)
- [`pipeline-deployment`](https://learn.microsoft.com/en-us/rest/api/azure/devops/distributedtask/environments/get-environment-deployment-records?view=azure-devops-rest-7.1&tabs=HTTP)
- [`test-run`](https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/list?view=azure-devops-rest-7.1&tabs=HTTP)
- [`file`](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/items/get-items-batch?view=azure-devops-rest-7.1&tabs=HTTP)
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,60 @@ resources:
pipelineName: .pipeline.name
relations:
project: .__project.id | gsub(" "; "")
- kind: environment
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id | tostring
title: .name | tostring
blueprint: '"azureDevopsEnvironment"'
properties:
description: .description
createdOn: .createdOn
lastModifiedOn: .lastModifiedOn
relations:
project: .project.id
- kind: release-deployment
selector:
query: 'true'
includeRelease: true
port:
entity:
mappings:
identifier: .id | tostring
title: .release.name + "-" + (.id | tostring) | gsub(" "; "")
blueprint: '"azureDevopsReleaseDeployment"'
properties:
status: .deploymentStatus
url: .url
reason: .reason
startedOn: .startedOn
completedOn: .completedOn
requestedBy: .requestedBy.displayName
operationStatus: .operationStatus
environment: .releaseEnvironment.name
relations:
release: .release.id | tostring
- kind: pipeline-deployment
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id | tostring
title: .requestIdentifier | tostring
blueprint: '"azureDevopsPipelineDeployment"'
properties:
planType: .planType
stageName: .stageName
jobName: .jobName
result: .result
startTime: .startTime
finishTime: .finishTime
relations:
environment: .environment.id | tostring
```

</details>
Expand Down Expand Up @@ -661,7 +715,7 @@ This section includes a sample response data from Azure DevOps. In addition, it
Here is an example of the payload structure from Azure DevOps:

<details>
<summary> Project response data</summary>
<summary><b>Project response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -696,7 +750,7 @@ Here is an example of the payload structure from Azure DevOps:
</details>

<details>
<summary> Repository response data</summary>
<summary><b>Repository response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -725,7 +779,7 @@ Here is an example of the payload structure from Azure DevOps:
</details>

<details>
<summary> Work-item response data</summary>
<summary><b>Work-item response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -805,7 +859,7 @@ Here is an example of the payload structure from Azure DevOps:
</details>

<details>
<summary> Pipeline response data</summary>
<summary><b>Pipeline response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -828,7 +882,7 @@ Here is an example of the payload structure from Azure DevOps:
</details>

<details>
<summary> Pull request response data</summary>
<summary><b>Pull request response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -917,7 +971,7 @@ Here is an example of the payload structure from Azure DevOps:


<details>
<summary> Build response data</summary>
<summary><b>Build response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -956,7 +1010,7 @@ Here is an example of the payload structure from Azure DevOps:
</details>

<details>
<summary> Pipeline-stage response data</summary>
<summary><b>Pipeline-stage response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -978,7 +1032,7 @@ Here is an example of the payload structure from Azure DevOps:
</details>

<details>
<summary> Pipeline-run response data</summary>
<summary><b>Pipeline-run response data (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -1011,7 +1065,7 @@ Here is an example of the payload structure from Azure DevOps:
The combination of the sample payload and the Ocean configuration generates the following Port entity:

<details>
<summary> Project entity in Port</summary>
<summary><b>Project entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -1031,7 +1085,7 @@ The combination of the sample payload and the Ocean configuration generates the
</details>

<details>
<summary> Repository entity in Port </summary>
<summary><b>Repository entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -1052,7 +1106,7 @@ The combination of the sample payload and the Ocean configuration generates the
</details>

<details>
<summary> Work-item entity in Port </summary>
<summary><b>Work-item entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down Expand Up @@ -1080,7 +1134,7 @@ The combination of the sample payload and the Ocean configuration generates the
</details>

<details>
<summary> Pipeline entity in Port </summary>
<summary><b>Pipeline entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -1101,7 +1155,7 @@ The combination of the sample payload and the Ocean configuration generates the
</details>

<details>
<summary> Pull request entity in Port </summary>
<summary><b>Pull request entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -1127,7 +1181,7 @@ The combination of the sample payload and the Ocean configuration generates the


<details>
<summary> Build entity in Port </summary>
<summary><b>Build entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -1153,7 +1207,7 @@ The combination of the sample payload and the Ocean configuration generates the
</details>

<details>
<summary> Pipeline-stage entity in Port </summary>
<summary><b>Pipeline-stage entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand All @@ -1177,7 +1231,7 @@ The combination of the sample payload and the Ocean configuration generates the
</details>

<details>
<summary> Pipeline-run entity in Port </summary>
<summary><b>Pipeline-run entity in Port (Click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary>Board blueprint</summary>
<summary><b>Board blueprint (click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<details>

<summary>Integration mapping</summary>
<summary><b>Integration mapping (click to expand)</b></summary>

```yaml showLineNumbers
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary>Build blueprint</summary>
<summary><b>Build blueprint (click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<details>

<summary>Integration mapping</summary>
<summary><b>Integration mapping (click to expand)</b></summary>

```yaml showLineNumbers
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary>Column blueprint</summary>
<summary><b>Column blueprint (click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<details>

<summary> Integration mapping </summary>
<summary><b>Integration mapping (Click to expand)</b></summary>

```yaml showLineNumbers
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<details>
<summary><b>Environment blueprint (click to expand)</b></summary>

```json showLineNumbers
{
"identifier": "azureDevopsEnvironment",
"title": "Azure DevOps Environment",
"icon": "AzureDevops",
"schema": {
"properties": {
"description": {
"title": "Description",
"type": "string",
"icon": "DefaultProperty",
"description": "The description of the environment"
},
"createdOn": {
"title": "Created On",
"type": "string",
"format": "date-time",
"description": "The date and time when the environment was created"
},
"lastModifiedOn": {
"title": "Last Modified On",
"type": "string",
"format": "date-time",
"description": "The date and time when the environment was last modified"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"aggregationProperties": {},
"relations": {
"project": {
"title": "Project",
"target": "project",
"required": true,
"many": false
}
}
}
```
</details>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<details>
<summary><b>Integration mapping (click to expand)</b></summary>

```yaml showLineNumbers
resources:
- kind: environment
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id | tostring
title: .name | tostring
blueprint: '"azureDevopsEnvironment"'
properties:
description: .description
createdOn: .createdOn
lastModifiedOn: .lastModifiedOn
relations:
project: .project.id
```

</details>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary>File blueprint</summary>
<summary><b>File blueprint (click to expand)</b></summary>

```json showLineNumbers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<details>

<summary>Integration mapping</summary>
<summary><b>Integration mapping (click to expand)</b></summary>

:::tip Configuration Mapping for Azure DevOps File Ingestion
The `selector` section within a `file` resource demonstrates how to configure file ingestion from Azure DevOps repositories. You can control:
Expand Down
Loading