Hi All,

I'm working .NET App type support in AF. Currently I have setup AF and a
seperate build server with MSbuild in EC2. When I create a .NET app it
automatically builds and deployable artifact is uploaded to the s2 repo.

But when I hit deploy again it gives me following exception,

TID: [0] [AS] [2014-10-01 21:17:35,651]  INFO
{org.wso2.carbon.appfactory.deployers.StratosDeployer} -  generated repo
URL: Development/dotnet/4/dotnetapp003bbbdotcom
{org.wso2.carbon.appfactory.deployers.StratosDeployer}
TID: [0] [AS] [2014-10-01 21:17:35,665] ERROR
{org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider}
-  Repository is not created for Development/dotnet/4/dotnetapp003bbbdotcom
due to remote server error
{org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider}
TID: [0] [AS] [2014-10-01 21:17:35,666] ERROR
{org.wso2.carbon.appfactory.deployers.AbstractDeployer} -  Error when
calling deployLatestSuccessArtifact Unable to create repository
{org.wso2.carbon.appfactory.deployers.AbstractDeployer}
org.wso2.carbon.appfactory.common.AppFactoryException: Unable to create
repository
at
org.wso2.carbon.appfactory.deployers.StratosDeployer.createSubscription(StratosDeployer.java:100)
at
org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.addToGitRepo(AbstractStratosDeployer.java:127)
at
org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.deploy(AbstractStratosDeployer.java:60)
at
org.wso2.carbon.appfactory.deployers.AbstractDeployer.deployLatestSuccessArtifact(AbstractDeployer.java:108)
at
org.wso2.carbon.appfactory.jenkins.deploy.JenkinsArtifactDeployer.deployLatestSuccessArtifact(JenkinsArtifactDeployer.java:101)
at
org.wso2.carbon.appfactory.jenkins.artifact.storage.AppfactoryArtifactStoragePlugin.doDynamic(AppfactoryArtifactStoragePlugin.java:95)



In my understanding this happens because there is already a repo in s2 git.
so the generated url getting messed up since
org.wso2.carbon.appfactory.deployers.StratosDeployer.createSubscription(StratosDeployer.java:100)
does not check whether the repo is already there or not.

what could be the solution for this ?

Thanks,
Kasun

*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : kas...@wso2.com
mobile : +94 77 794 4260
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to