Hi All,
Following is the Jenkins build job template that configures the .NET
application build. AFAIK there is no solid way of building .NET apps with
maven, so most optimal way is to use the MSBuild inside a windows slave to
the master jenkins of the AppFactory.
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>isAutomatic</name>
<description></description>
<defaultValue>true</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>persistArtifact</name>
<description></description>
<defaultValue>false</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>doDeploy</name>
<description></description>
<defaultValue>false</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>deployAction</name>
<description></description>
<defaultValue>deploy</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>deployStage</name>
<description></description>
<defaultValue>empty</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>tagName</name>
<description></description>
<defaultValue></defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>tenantUserName</name>
<description></description>
<defaultValue></defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>http://admin%40admin.com:admin@localhost
:9763/scm-webapp-1.14/git/app2</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>*/master</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="list"/>
<extensions/>
</scm>
<assignedNode>dotnetSlave</assignedNode>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers class="vector">
<hudson.triggers.SCMTrigger>
<spec></spec>
</hudson.triggers.SCMTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.plugins.msbuild.MsBuildBuilder plugin="[email protected]">
<msBuildName>v4.0</msBuildName>
<msBuildFile>app2.sln</msBuildFile>
<cmdLineArgs></cmdLineArgs>
<buildVariablesAsProperties>false</buildVariablesAsProperties>
<continueOnBuildFailure>false</continueOnBuildFailure>
<unstableIfWarnings>false</unstableIfWarnings>
</hudson.plugins.msbuild.MsBuildBuilder>
</builders>
<publishers/>
<buildWrappers/><prebuilders/>
<postbuilders/>
<runPostStepsIfResult>
<name>FAILURE</name>
<ordinal>2</ordinal>
<color>RED</color>
</runPostStepsIfResult>
</project>
It still need some work in <publishers/> since deployment and subscribing
into .NET cartridges in the private pass is still not in production and
currently working on it.
Thanks,
Kasun
*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware
email : [email protected]
mobile : +94 77 794 4260
On Thu, Aug 28, 2014 at 9:41 AM, Kasun De Silva <[email protected]> wrote:
> Hi Madhawa,
>
> Yes the repository is created in gitblit as the provided .NET archetype.
> At this point we need a Jenkins which runs in windows with the .NET
> framework in order to build it. Thats what I'm working on now.
>
> Kasun
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email : [email protected]
> mobile : +94 77 794 4260
>
>
>
> On Mon, Aug 25, 2014 at 12:00 AM, Madhawa Bandara <[email protected]>
> wrote:
>
>> Hi Kasun,
>>
>> Did you check if the repository is created in gitblit?
>>
>>
>> On Sun, Aug 24, 2014 at 3:21 PM, Kasun De Silva <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I created an archetype for a basic .NET project and create apptype for
>>> .NET, And then plug the .NET apptype inside AppFactory which refers the
>>> archetype for .NET.
>>>
>>> So at this point we can create a .NET webapp inside the appfactory.
>>>
>>> But the Jenkins that AppFactory triggers to build the .NET app couldn't
>>> build the app successfully since its inside a UNIX environment. In order
>>> to build the .NET app there should be a .NET framework. So as an experiment
>>> I installed the .NET framework and Jenkins inside a Windows VM, and tested
>>> the build for .NET apps manually from the Jenkins inside windows with
>>> MSbuild. It was able to build the app successfully.
>>>
>>> Now I'm looking forward to point the build for .NET apps into the
>>> Jenkins Windows as a Jenkins slave from the AppFactory.
>>>
>>> Thanks,
>>> Kasun
>>>
>>>
>>> *Kasun de Silva*
>>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email : [email protected]
>>> mobile : +94 77 794 4260
>>>
>>>
>>>
>>> On Tue, Aug 19, 2014 at 6:28 PM, Reka Thirunavukkarasu <[email protected]>
>>> wrote:
>>>
>>>> Yah..We have used .NET cartridge for that webinar with Ec2. We can
>>>> share the scripts in order to create the .NET cartridge in your preferred
>>>> IaaS.
>>>>
>>>> Thanks,
>>>> Reka
>>>>
>>>>
>>>> On Tue, Aug 19, 2014 at 6:06 PM, Sajith Kariyawasam <[email protected]>
>>>> wrote:
>>>>
>>>>> With private paas 4.0 we didn't release a .NET cartridge, but we have
>>>>> tested this
>>>>>
>>>>> Please refer [1]
>>>>>
>>>>> ManulaC / Reka will be able to give more insight.
>>>>>
>>>>> [1]
>>>>> http://wso2.com/library/webinars/2014/07/saas-app-development-with-windows-cartridge/
>>>>>
>>>>> Thanks,
>>>>> Sajith
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Aug 19, 2014 at 6:00 PM, Madhawa Bandara <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Yes we need .net framework installed too.
>>>>>> Is there a cartridge for .net in private paas?
>>>>>>
>>>>>>
>>>>>> On Tue, Aug 19, 2014 at 5:03 PM, Ajanthan Balachandran <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 19, 2014 at 4:49 PM, Danushka Fernando <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> And as per my understanding we will need a jenkins windows,.net
>>>>>>>> environment to build as well.
>>>>>>>>
>>>>>>> Standard way of doing this is to attach a windows slave with MSBuild
>>>>>>> and tag the job to the slave.This way we can have linux master and
>>>>>>> windows
>>>>>>> slave.
>>>>>>>
>>>>>>>>
>>>>>>>> Thanks & Regards
>>>>>>>> Danushka Fernando
>>>>>>>> Software Engineer
>>>>>>>> WSO2 inc. http://wso2.com/
>>>>>>>> Mobile : +94716332729
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Aug 19, 2014 at 4:19 PM, Kasun De Silva <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> I' am working on implementing the .NET apptype support in
>>>>>>>>> AppFactory, This implementation is kind of similar as all other
>>>>>>>>> apptype
>>>>>>>>> implementations we currently have. But currently there is no available
>>>>>>>>> archetype for .NET apptypes. Since .NET apptypes have to be deployed
>>>>>>>>> in
>>>>>>>>> (Windows) IIS cartridge, also there is no such cardrige in
>>>>>>>>> private paas in production.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Workflow,
>>>>>>>>>
>>>>>>>>> 1. Create a .NET application
>>>>>>>>>
>>>>>>>>> - Should have .NET apptype support in Appfactory
>>>>>>>>>
>>>>>>>>> 2. Build the application
>>>>>>>>>
>>>>>>>>> - Currently Jenkins is the build server that Appfactory uses, So
>>>>>>>>> Jenkins should have the capability to build .NET apps.
>>>>>>>>>
>>>>>>>>> 3. Deployment
>>>>>>>>>
>>>>>>>>> - Since .NET apptype has to be deployed in IIS server there
>>>>>>>>> should be a IIS Cartridge in private paas.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Implementation Steps,
>>>>>>>>>
>>>>>>>>> 1. Create an archetype for .NET Apps
>>>>>>>>> 2. Create an apptype for .NET apps and plug it inside AppFactory
>>>>>>>>> 3. Enable the Jenkins build compatibility for .NET apptype
>>>>>>>>> 4. Create IIS cartridge in private pass
>>>>>>>>> 5. Enable deploying into IIS
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Kasun
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *Kasun de Silva*
>>>>>>>>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>
>>>>>>>>> email : [email protected]
>>>>>>>>> mobile : +94 77 794 4260
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Architecture mailing list
>>>>>>>>> [email protected]
>>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Architecture mailing list
>>>>>>>> [email protected]
>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ajanthan
>>>>>>> --
>>>>>>> Ajanthan Balachandiran
>>>>>>> Senior Software Engineer;
>>>>>>> Solutions Technologies Team ;WSO2, Inc.; http://wso2.com/
>>>>>>>
>>>>>>> email: ajanthan <http://goog_595075977>@wso2.com; cell: +94775581497
>>>>>>> blog: http://bkayts.blogspot.com/
>>>>>>>
>>>>>>> Lean . Enterprise . Middleware
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Architecture mailing list
>>>>>>> [email protected]
>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>
>>>>>> *Madhawa Bandara*
>>>>>> Software Engineer
>>>>>> WSO2, Inc.
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> Mobile - *+94777487726 <%2B94777487726>*
>>>>>> Blog* - *classdeffound.blogspot.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *--*
>>>>> *Sajith Kariyawasam*
>>>>> *Mobile: +94772269575 <%2B94772269575>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Reka Thirunavukkarasu
>>>> Senior Software Engineer,
>>>> WSO2, Inc.:http://wso2.com,
>>>> Mobile: +94776442007
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Architecture mailing list
>>>> [email protected]
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> *Madhawa Bandara*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+94777487726 <%2B94777487726>*
>> Blog* - *classdeffound.blogspot.com
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture