Thursday, November 5, 2020

Setup CI using Build Pipelines for Azure Function (Part 3- Azure Function CI/CD)

 1.      Open Project

Login to Azure Devops and open Project created in previous post.

2.      Create Pipeline

i) Click on “Pipelines” in the left navigation menu followed by “Create Pipeline” button.
 

ii) Pipeline Configuration Wizard will open up. Click on “Use the classic editor”

iii) Select the repository and branch to activate automated builds and click “Continue”.

We will use the Git repository highlighted in step 1.


iv) Search for template “Azure Functions for .Net” and click “Apply”.


v)  We see following predefined tasks in the template

·                  Build Project – This builds the checked-in azure function.

·                  Achieve Files – This creates a zip file of the azure function.

·                  Publish Artifact – This publish zip file to specific drop location. 

Click on Pipeline and provide name, agent pool and Agent Specification

Note – you can use latest agent “windows-2019” also here in example we are using the previous version.



vi) 
To enable continuous integration click “Triggers” tab, check “Enable continuous Integration”, and define the branch filters. This helps to trigger our pipeline automatically when code checked-in to specific branch.
Click on “Save”



vii) Once we click on “Save”, pop up comes to select pipeline location, to save pipeline at root level click “Save” button.

Note - We can also add folder name to group similar pipelines. Here we are saving it to root level.




3.      Verify Build Pipeline

Go back to home and click “Pipelines” to see recently create pipeline.



Build Pipeline is ready, Lets move to Step 4.

Happy Learning, LET'S SHARE !

No comments:

Post a Comment

Popular Posts