Push your Code to Azure DevOps Repository from UiPath Studio

Azure Repos is a set of version control tools that you can use to manage your code. Whether your software project is large or small, using version control as soon as possible is a good idea. Version control systems are software that helps you track changes you make in your code over time.

Things we will cover in this post:

  1. Create a Project in Azure DevOps
  2. Push our Code to the Azure Repo

Things we will not cover:

  1. Azure DevOps Services features and Pricing – It is free to use for Individuals. To know more about the services and pricing, visit here.
  2. Features of Azure Repo – To learn more about its features, visit here. The most important thing is, it provides unlimited private git repositories.

Prerequisites

  1. Azure DevOps Account
  2. UiPath Studio
Microsoft

Create Project in Azure DevOps

First, we need to create a project, then only we can create a repo. There can be multiple repos in a single project. After you log in to Azure DevOps, select your Organization. The organization is auto-created when you sign up. You can create more organizations.

A single Organization can have multiple projects and a single project can have multiple repos. I have created two organizations. One of them is created by default.

If you are coming for the first time to this portal, you will be asked to create a new project on the home screen. For returning users, you will see your projects listed.

Give a name for your project, select the visibility and create the project. When the project is created, you will land up in a similar dashboard as below.

In the left side menu, click on Repos. A default repository is auto-created, you can select from the top menu. Once you select, it will give instructions to Push existing repos or import a repo or clone.

It will say that, your repo is empty.

Now, let us go ahead and add some code from the UiPath Studio.

Push your Code to the Azure Repo

I hope you have the project or code changes ready in the UiPath Studio to be pushed to Azure Repo. You will have a similar project structure like this for REF projects or you might have created just a single process.

Right-click on the project -> Add To Source Control -> GIT Init.

Select the root folder of your project to create a local GIT repository.

With this, the Commit Changes dialog window will open with a + sign against each of the files and folder. This represents, a new file or folder is found within your project which is not committed.

If this dialog window does not open it for you, you can just right click on the project and click on Commit.

We give a Commit Message. I will give as “Initial Commit” and click on Commit and Push. This will open a Manage Remotes dialog window.

Give any name for your remote repo. The URL can be found from the Azure DevOps repo.

When you have given the name and the URL, click on Add.

This will come under Manage Remotes -> Remote Repositories. Click on Save.

You will be prompted to enter the credentials.

You can generate the Git Credentials from the Azure Repo.

Copy the credentials and enter it in the UiPath Studio.

When you have entered the creds, click on OK.

With this, all your changes are pushed to the Azure DevOps Repository.

This was the initial commit, we saw. When you make any changes to the code. You will see an orange pen symbol appearing against the file.

To push this change, right click on the project -> Click on Commit.

Give a commit message and click on Commit and Push.

That is it. The changes are now reflected in the Azure Repo.

Thank you All!!! Hope you find this useful.


One thought on “Push your Code to Azure DevOps Repository from UiPath Studio

Add yours

Leave a Reply

Up ↑

%d