-
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.
feat: param and pipeline configuration classes
- Loading branch information
Luca Pirovano
committed
Aug 14, 2024
1 parent
fd832f5
commit 1092925
Showing
6 changed files
with
50 additions
and
23 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
19 changes: 19 additions & 0 deletions
19
src/main/java/org/opendatamesh/platform/up/executor/gitlabci/config/ParamConfiguration.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,19 @@ | ||
package org.opendatamesh.platform.up.executor.gitlabci.config; | ||
|
||
import lombok.Getter; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
@Getter | ||
public class ParamConfiguration { | ||
/** | ||
* The client prefix, used to set the prefix to the display name of the parameter. | ||
*/ | ||
@Value("${odm.productplane.params-service.client-prefix}") | ||
private String clientPrefix; | ||
@Value("${odm.productplane.params-service.address}") | ||
private String serverAddress; | ||
@Value("${odm.productplane.params-service.client-uuid}") | ||
private String clientUUID; | ||
} |
14 changes: 14 additions & 0 deletions
14
...ain/java/org/opendatamesh/platform/up/executor/gitlabci/config/PipelineConfiguration.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,14 @@ | ||
package org.opendatamesh.platform.up.executor.gitlabci.config; | ||
|
||
import lombok.Getter; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
@Getter | ||
public class PipelineConfiguration { | ||
@Value("${odm.executors.gitlab.pipelines-config.polling.retries}") | ||
private Integer pollingNumRetries; | ||
@Value("${odm.executors.gitlab.pipelines-config.polling.interval}") | ||
private Integer pollingIntervalSeconds; | ||
} |
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