-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from opendatamesh-initiative/12-adding-pipelin…
…e-status-tracking 12 adding pipeline status tracking
- Loading branch information
Showing
29 changed files
with
974 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...a/org/opendatamesh/platform/up/executor/azuredevops/api/clients/AzureDevOpsAPIRoutes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.opendatamesh.platform.up.executor.azuredevops.api.clients; | ||
|
||
import org.opendatamesh.platform.core.commons.clients.ODMApiRoutes; | ||
|
||
public enum AzureDevOpsAPIRoutes implements ODMApiRoutes { | ||
|
||
AZURE_DEVOPS_PIPELINE("/{organization}/{project}/_apis/pipelines/{pipelineId}/runs?api-version=7.0"), | ||
|
||
AZURE_DEVOPS_RUN("/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}?api-version=7.0"); | ||
|
||
private final String path; | ||
|
||
AzureDevOpsAPIRoutes(String path) { | ||
this.path = path; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.path; | ||
} | ||
|
||
@Override | ||
public String getPath() { | ||
return path; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...ava/org/opendatamesh/platform/up/executor/azuredevops/api/resources/AzureRunResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.opendatamesh.platform.up.executor.azuredevops.api.resources; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
import java.util.Map; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class AzureRunResource { | ||
|
||
@JsonProperty("id") | ||
private Long runId; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("state") | ||
private AzureRunState state; | ||
|
||
@JsonProperty("result") | ||
private AzureRunResult result; | ||
|
||
@JsonProperty("variables") | ||
private Map<String, AzureVariable> variables; | ||
|
||
@JsonProperty("templateParameters") | ||
private Map<String, String> templateParameters; | ||
|
||
@JsonProperty("createdDate") | ||
private String createdDate; | ||
|
||
@JsonProperty("finishedDate") | ||
private String finishedDate; | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
.../java/org/opendatamesh/platform/up/executor/azuredevops/api/resources/AzureRunResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.opendatamesh.platform.up.executor.azuredevops.api.resources; | ||
|
||
public enum AzureRunResult { | ||
|
||
canceled, | ||
|
||
failed, | ||
|
||
succeeded, | ||
|
||
unknown | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...n/java/org/opendatamesh/platform/up/executor/azuredevops/api/resources/AzureRunState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.opendatamesh.platform.up.executor.azuredevops.api.resources; | ||
|
||
public enum AzureRunState { | ||
canceling, | ||
completed, | ||
inProgress, | ||
unknown | ||
} |
17 changes: 17 additions & 0 deletions
17
...n/java/org/opendatamesh/platform/up/executor/azuredevops/api/resources/AzureVariable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.opendatamesh.platform.up.executor.azuredevops.api.resources; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class AzureVariable { | ||
|
||
@JsonProperty("isSecret") | ||
private Boolean isSecret; | ||
|
||
@JsonProperty("value") | ||
private String value; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.