This documentation is for WSO2 App Factory 2.0.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

Introduction

When you create an application, WSO2 App Factory creates a GIT repository for it by default. If you already have a GIT repository, you can add it to App Factory instead of the default one using the <RepositoryProviderConfig> element in <AF_HOME>/repository/conf/appfactory/appfactory.xml file.

Sample configuration

Following sample code adds a new GIT repository to App Factory:

<RepositoryProviderConfig name="git" enabled="true">
     <Property name="Class">
           org.wso2.carbon.appfactory.git.repository.provider.GITBlitBasedGITRepositoryProvider
     </Property>
     <Property name="BaseURL">https://localhost:8443/</Property>
     <Property name="GitblitAdminUserName">admin</Property>
     <Property name="GitblitAdminPassword">admin</Property>
     <Property name="ReadWritePermission">/permission/admin/appfactory/repository/readwrite</Property>
</RepositoryProviderConfig>

The elements of the sample configuration are explained below. You can use this information to edit the file according to your requirements.

ElementDescription
BaseURL
URL of your GIT repository
GitblitAdminUserName/GitblitAdminPassword
Credentials to log in to your GIT repository
  • No labels