Showing posts with label VSTS. Show all posts
Showing posts with label VSTS. Show all posts

Angular 6 : DevOps VSTS

Angular 6 : DevOps VSTS


Overview


Using VSTS we can make build of Angular project and deploy on server. 

We need to make build and release pipeline in VSTS. Here I have explained it step by step.



Build








Release (Deployment)








Hope this will help you and save your time.

Enjoy !!!

:)

VSTS - Automation for Azure Function issue

VSTS - Automation for Azure Function issue

I create build Azure function project using VSTS and run successfully. But when I run Release it worked fine for first time, But when I run release next time for the same build definition, it gave me below error.

Error:

Web Deploy cannot modify the file 'DemoApp.DemoFunctions.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE. Error count: 1.
 

Solution:

1. Login to Azure portal

2. Goto function app and open your function app
3. Click on "Application settings" from Overview tab.
4. Goto "Application settings" section on "Application settings" page.
5. Add MSDEPLOY_RENAME_LOCKED_FILES = 1
6. Save settings from top left corner.
7. Redeploy your Azure function, it will work.

Hope this will help you and save your time.

Enjoy !!!

:)

Exclude folders from VSTS Build

Exclude folders from VSTS Build



We can exclude folder contents using VSTS automatic build, here are steps to exclude folders from build,

1. Open build definition
2. Select build solution option from left panel
3. Update MSBuild arguments

Phase 1 => Build Solution => MSBuild Arguments


Append below code of line in "MSBuild Arguments" textbox 
/p:ExcludeFoldersFromDeployment="Content\dist\css\skins;Content\dist\js"

This is exclude two folders, one from Content\dist\css\skins and another from Content\dist\js




Hope this will help you and save your time.


Enjoy !!!

:)