diff --git a/.jhipster/Microservice.json b/.jhipster/Microservice.json
index ac13d2b..334c236 100644
--- a/.jhipster/Microservice.json
+++ b/.jhipster/Microservice.json
@@ -36,6 +36,13 @@
"fieldValidateRules": [
"required"
]
+ },
+ {
+ "fieldName": "ciUrl",
+ "fieldType": "String",
+ "fieldValidateRules": [
+ "required"
+ ]
}
],
"relationships": [
diff --git a/microcatalog.jdl b/microcatalog.jdl
index 0b861a8..acc5cf7 100644
--- a/microcatalog.jdl
+++ b/microcatalog.jdl
@@ -14,7 +14,8 @@ entity Microservice {
description TextBlob required,
imageUrl String required,
swaggerUrl String required,
- gitUrl String required
+ gitUrl String required,
+ ciUrl String required
}
entity Dependency {
diff --git a/src/main/java/com/github/microcatalog/domain/Microservice.java b/src/main/java/com/github/microcatalog/domain/Microservice.java
index 8a71f0b..5eb91e7 100644
--- a/src/main/java/com/github/microcatalog/domain/Microservice.java
+++ b/src/main/java/com/github/microcatalog/domain/Microservice.java
@@ -47,6 +47,10 @@ public class Microservice implements Serializable {
@Column(name = "git_url", nullable = false)
private String gitUrl;
+ @NotNull
+ @Column(name = "ci_url", nullable = false)
+ private String ciUrl;
+
@ManyToOne(optional = false)
@NotNull
@JsonIgnoreProperties(value = "microservices", allowSetters = true)
@@ -131,6 +135,19 @@ public void setGitUrl(String gitUrl) {
this.gitUrl = gitUrl;
}
+ public String getCiUrl() {
+ return ciUrl;
+ }
+
+ public Microservice ciUrl(String ciUrl) {
+ this.ciUrl = ciUrl;
+ return this;
+ }
+
+ public void setCiUrl(String ciUrl) {
+ this.ciUrl = ciUrl;
+ }
+
public Team getTeam() {
return team;
}
@@ -184,6 +201,7 @@ public String toString() {
", imageUrl='" + getImageUrl() + "'" +
", swaggerUrl='" + getSwaggerUrl() + "'" +
", gitUrl='" + getGitUrl() + "'" +
+ ", ciUrl='" + getCiUrl() + "'" +
"}";
}
}
diff --git a/src/main/resources/config/liquibase/changelog/20201001051657_added_entity_Microservice.xml b/src/main/resources/config/liquibase/changelog/20201001051657_added_entity_Microservice.xml
index fd75fb8..5cea077 100644
--- a/src/main/resources/config/liquibase/changelog/20201001051657_added_entity_Microservice.xml
+++ b/src/main/resources/config/liquibase/changelog/20201001051657_added_entity_Microservice.xml
@@ -30,6 +30,9 @@