-
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.
- Loading branch information
Luca Pirovano
committed
Aug 7, 2024
1 parent
0d961c4
commit 2063c0f
Showing
16 changed files
with
160 additions
and
137 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
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
4 changes: 0 additions & 4 deletions
4
.../java/org/opendatamesh/platform/up/executor/gitlabci/resources/ConfigurationResource.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package org.opendatamesh.platform.up.executor.gitlabci.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 ConfigurationResource { | ||
@JsonProperty("params") | ||
private Map<String, String> params; | ||
} |
32 changes: 9 additions & 23 deletions
32
src/main/java/org/opendatamesh/platform/up/executor/gitlabci/resources/TaskResource.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 |
---|---|---|
@@ -1,62 +1,48 @@ | ||
package org.opendatamesh.platform.up.executor.gitlabci.resources; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
|
||
import java.util.Date; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class TaskResource { | ||
|
||
@JsonProperty("id") | ||
@Schema(description = "Auto generated Task ID") | ||
Long id; | ||
private Long id; | ||
|
||
@JsonProperty("activityId") | ||
@Schema(description = "ID of the parent Activity of the Task") | ||
String activityId; | ||
private String activityId; | ||
|
||
@JsonIgnore | ||
@Schema(description = "Logical name of the target task executor service", example = "azure-devops") | ||
String executorRef; | ||
private String executorRef; | ||
|
||
@JsonProperty("callbackRef") | ||
@Schema(description = "Reference for the callback from the executor service") | ||
String callbackRef; | ||
private String callbackRef; | ||
|
||
@JsonProperty("template") | ||
@Schema(description = "Template of the Task") | ||
String template; | ||
private String template; | ||
|
||
@JsonProperty("configurations") | ||
@Schema(description = "Configurations for the Task") | ||
String configurations; | ||
private String configurations; | ||
|
||
@JsonProperty("status") | ||
@Schema(description = "Task status") | ||
TaskStatus status; | ||
private TaskStatus status; | ||
|
||
@JsonProperty("results") | ||
@Schema(description = "Task results in case of successful execution") | ||
String results; | ||
private String results; | ||
|
||
@JsonProperty("errors") | ||
@Schema(description = "Task results in case of failures") | ||
String errors; | ||
private String errors; | ||
|
||
@JsonProperty("createdAt") | ||
@Schema(description = "Creation timestamp of the Task") | ||
private Date createdAt; | ||
|
||
@JsonProperty("startedAt") | ||
@Schema(description = "Timestamp of the start of the Task execution") | ||
private Date startedAt; | ||
|
||
@JsonProperty("finishedAt") | ||
@Schema(description = "Timestamp of the end of the Task execution") | ||
private Date finishedAt; | ||
} |
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
2 changes: 0 additions & 2 deletions
2
...atamesh/platform/up/executor/gitlabci/resources/client/gitlab/GitlabPipelineResource.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
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
13 changes: 1 addition & 12 deletions
13
...org/opendatamesh/platform/up/executor/gitlabci/resources/client/params/ParamResource.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
Oops, something went wrong.