We use: - SVN - Jenkins - MS Build plugin
We have several Web Form/MVC/Web services.
We are going to setup Microsoft Web Deploy and run bat file from Jenkins.
Maybe someone can suggest better way to do that or this looks like most effective solution?
Thank you in advance.
Jenkins itself is written in Java, thus for other project types, you would require consuming those extensions. I will demonstrate usage of the . NET build system in Jenkins workflow to build your . NET apps, as soon as there are changes in the repository.
For that, select Manage Jenkins and Click on Manage Plugins. Select the Team Foundation Server Plug-in and VS Team services Continuous Deployment Plugin. Also, we need MS Build Plugin the same as the below screen. From the Source code management tab, will set the source team Foundation Version Control (TFVC).
WebDeploy is definetly the right way to deploy web applications.
Staring from VS2010 targets for running web deploy in simple scenarious are "built-in" into the project files(and msbuild extension files on the PC). Starting from VS2012 you can also use Publish Profiles feature which allows storing publish details in a simple file. E.g. you can run something like that:
msbuild MyProject.csproj /p:DeployOnBuild=true /p:PublishProfile=<profile-name> /p:Password=<insert-password> /p:VisualStudioVersion=11.0
Which will build the app and publish it using the profile-name
publish profile.
We were using bat files to run webdeploy commands directly when we were restricted to .NET 3.5 and VS2008 which didn't have project files web deploy integration.
Hope it helps,
Ivan
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With