Commit 790d58e1 authored by Francois Merlin's avatar Francois Merlin
Browse files

RELEASER-17 :An error appear when component do not have scm informations

parent 6fd4a3bd
......@@ -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 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment