Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
3a79c03c692169b95a51c037365c9d5d0d5b0b75
1 parent
40530fba
java发布存在互斥项目,不允许同时发布
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
monitor-ui-common/src/main/java/com/ui/project/ProjectMutex.java
monitor-ui-common/src/main/java/com/ui/project/ProjectMutex.java
View file @
3a79c03
...
...
@@ -13,9 +13,16 @@ public class ProjectMutex {
//与其他项目互斥,但是本身并不互斥
private
final
static
List
<
List
<
String
>>
java_mutex_project_to_other
=
new
ArrayList
<>();
private
final
static
List
<
String
>
java_mutex_project_to_other_rule1
=
Arrays
.
asList
(
new
String
[]{
"yohobuy-activity"
,
"yohobuy-product"
,
"yohobuy-promotion"
});
//private final static List<String> java_mutex_project_to_other_rule1= Arrays.asList(new String[]{"yohobuy-activity","yohobuy-product","yohobuy-promotion","yoho-gateway"});
private
final
static
List
<
String
>
java_mutex_project_to_other_rule1
=
Arrays
.
asList
(
new
String
[]{
"yohobuy-activity"
});
private
final
static
List
<
String
>
java_mutex_project_to_other_rule2
=
Arrays
.
asList
(
new
String
[]{
"yohobuy-product"
});
private
final
static
List
<
String
>
java_mutex_project_to_other_rule3
=
Arrays
.
asList
(
new
String
[]{
"yohobuy-promotion"
});
private
final
static
List
<
String
>
java_mutex_project_to_other_rule4
=
Arrays
.
asList
(
new
String
[]{
"yoho-gateway"
});
static
{
java_mutex_project_to_other
.
add
(
java_mutex_project_to_other_rule1
);
java_mutex_project_to_other
.
add
(
java_mutex_project_to_other_rule2
);
java_mutex_project_to_other
.
add
(
java_mutex_project_to_other_rule3
);
java_mutex_project_to_other
.
add
(
java_mutex_project_to_other_rule4
);
}
...
...
Please
register
or
login
to post a comment