Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
add deployMetadata to Build, buildUrl to DeploymentRequest (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvema committed Nov 30, 2020
1 parent 3a7411f commit 1469a2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -19,7 +19,7 @@
<groupId>com.capitalone.dashboard</groupId>
<artifactId>core</artifactId>
<packaging>jar</packaging>
<version>3.10.11</version>
<version>3.11.0</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Core package shared by API layer and Microservices</description>
<url>https://github.com/Hygieia/hygieia-core</url>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/capitalone/dashboard/model/Build.java
Expand Up @@ -4,8 +4,10 @@
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
* The result of a Continuous Integration build execution. Typically produces binary artifacts.
Expand Down Expand Up @@ -36,6 +38,7 @@ public class Build extends BaseModel {
private List<RepoBranch> codeRepos = new ArrayList<>();
private List<SCM> sourceChangeSet = new ArrayList<>();
private List<BuildStage> stages = new LinkedList<>();
private Map<String, String> deployMetadata = new HashMap<>();

public ObjectId getCollectorItemId() {
return collectorItemId;
Expand Down Expand Up @@ -145,4 +148,7 @@ public void setStages(List<BuildStage> stages) {
this.stages = stages;
}

public Map<String, String> getDeployMetadata() { return deployMetadata; }

public void setDeployMetadata(Map<String, String> deployMetadata) { this.deployMetadata = deployMetadata; }
}
Expand Up @@ -36,6 +36,7 @@ public class DeployDataCreateRequest {
private String stageName;
private String stageStatus;
private String jobNumber;
private String buildUrl;

public String getExecutionId() {
return executionId;
Expand Down Expand Up @@ -192,4 +193,8 @@ public void setNiceName(String niceName) {
public String getArtifactPath() { return artifactPath; }

public void setArtifactPath(String artifactPath) { this.artifactPath = artifactPath; }

public String getBuildUrl() { return buildUrl; }

public void setBuildUrl(String buildUrl) { this.buildUrl = buildUrl; }
}

0 comments on commit 1469a2b

Please sign in to comment.