Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lutece
lutece-build-plugin-releaser
Commits
790d58e1
Commit
790d58e1
authored
Sep 08, 2021
by
Francois Merlin
Browse files
RELEASER-17 :An error appear when component do not have scm informations
parent
6fd4a3bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/java/fr/paris/lutece/plugins/releaser/web/ManageSiteReleaseJspBean.java
View file @
790d58e1
...
...
@@ -275,17 +275,17 @@ public class ManageSiteReleaseJspBean extends MVCAdminJspBean
Map
<
String
,
Object
>
model
=
getModel
(
);
if
(
_site
.
getRepoType
(
).
equals
(
RepositoryType
.
GITHUB
)
||
_site
.
getComponents
(
).
stream
(
).
anyMatch
(
x
->
x
.
shouldBeReleased
(
)
&&
x
.
getRepoType
(
).
equals
(
RepositoryType
.
GITHUB
)
)
)
||
_site
.
getComponents
(
).
stream
(
).
anyMatch
(
x
->
x
.
shouldBeReleased
(
)
&&
RepositoryType
.
GITHUB
.
equals
(
x
.
getRepoType
(
)
)
)
)
{
model
.
put
(
ConstanteUtils
.
MARK_REPO_TYPE_GITHUB
,
RepositoryType
.
GITHUB
);
}
if
(
_site
.
getRepoType
(
).
equals
(
RepositoryType
.
GITLAB
)
||
_site
.
getComponents
(
).
stream
(
).
anyMatch
(
x
->
x
.
shouldBeReleased
(
)
&&
x
.
getRepoType
(
).
equals
(
RepositoryType
.
GITLAB
)
)
)
||
_site
.
getComponents
(
).
stream
(
).
anyMatch
(
x
->
x
.
shouldBeReleased
(
)
&&
RepositoryType
.
GITLAB
.
equals
(
x
.
getRepoType
(
)
)
)
)
{
model
.
put
(
ConstanteUtils
.
MARK_REPO_TYPE_GITLAB
,
RepositoryType
.
GITLAB
);
}
if
(
_site
.
getRepoType
(
).
equals
(
RepositoryType
.
SVN
)
||
_site
.
getComponents
(
).
stream
(
).
anyMatch
(
x
->
x
.
shouldBeReleased
(
)
&&
x
.
getRepoType
(
).
equals
(
RepositoryType
.
SVN
)
)
)
||
_site
.
getComponents
(
).
stream
(
).
anyMatch
(
x
->
x
.
shouldBeReleased
(
)
&&
RepositoryType
.
SVN
.
equals
(
x
.
getRepoType
(
)
)
)
)
{
model
.
put
(
ConstanteUtils
.
MARK_REPO_TYPE_SVN
,
RepositoryType
.
SVN
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment