DevOps UiPath – Integration of UiPath with Github

DevOps is a term used for a group of concepts consisting of cultural philosophies, practices, and tools that augment the capability of an organization to deliver software applications and services more rapidly in a more stable and more organized and managed way. The purpose of DevOps is to integrate the development team better with the operation team. DevOps is said to be an offshoot from Agile development methodology.

DevOps has emerged as a popular topic in the technical community, where organizations are increasingly applying the concepts of DevOps to smoothen the overall delivery of the product or service. There are new job roles specifically as develops expert.

In this blog, we are going to discuss how we can integrate UiPath with Github.

Why we require GIT or TFS in UiPath.

Like any other IT development project, the UiPath RPA projects could become extensive and large scale, especially when the RPA projects run across different geographies with a large number of developers, BA, and other participants. Hence, in such a situation, tools are required to co-ordinate better the release, version management, security, access, centralization of the code.

GIT: Git is a popular open-source version control tool that uses distributed version control. In Git, a copy of the project is spread across the various machines.   GIT installed on the local machine is called as GIT, while Github is the name of the cloud platform of the GIT.

Integrate GitHub with UiPath Studio.

In the below post, we learn how to integrate UiPath studio with GitHub. Github integration is easy as it does not require any installation on your local machine. However, in an enterprise, an organization may have its on-prem GIT hosting.

1

Create an account: Open the Git Hub Website and sign up the website.

 

01-Github-open
01-Github-open
github-create-account

2

Enter a username, email address, and password to complete account creation on GitHub. 

 

github-create-account

3

Select  the work and the programming experience according to your preferences

 

Github-complete-account
Github-complete-account

4

Now that the account is created create a new repository. A repository is a location on GitHub where the files of the Project are stored. Click on the green create repository button on the left side of the screen.

 

github-create-repo
github-create-repo

5

Once you click on create a repository, in the following form, enter the repository name, and choose the repository as public or private. A public repository is accessible and visible to all the GitHub users. Click Create repository.

 

github-create-repo
github-create-repo

6

After you click create repository, click the red rectangle in the image below to copy the repository url. Save the URL in a text file. We will require this address later when we connect UiPath to GitHub.

 

github-copy-github-url
github-copy-github-url

7

Now launch UiPath studio to create a project that we will map to GitHub account we have just created. Click the process as shown in the red rectangle to create a UiPath Project.

 

create-uiPath-proj
create-uiPath-proj

8

In the new Blank process window enter the project name, optional description, and click create. 

 

create-uiPath-proj-name
create-uiPath-proj-name

9

The Project gets created. The main file is blank. Enter a sequence activity and a message box activity in the sequence activity, as shown below. This step is not necessary.  We are doing this step only to make the Project appear more real. 

 

UiPath-Project-Created
UiPath-Project-Created

10

Now to connect or map this Project to GitHub, we click he file Menu button to go to the backstage view of UiPath.

 

UiPath-Add-Activity
UiPath-Add-Activity

11

In the backstage view of the UiPath studio click Team tab. In the team tab under Git, you see many options. We choose the Git Init option.  This option allows us to create a new repository on the GitHub portal.  We use this option when we connect a UiPath project to GitHub for the first time.

 

UiPath-Githu-init
UiPath-Githu-init

12

After you click the init, the below prompt appears asking you to map the repository folder. The repository folder should be the root or parent folder of the Project. So here just click the select folder.

 

UiPath-Map-Folder
UiPath-Map-Folder

13

Once the select folder is clicked, the commit changes window appears. This window contains all the files that will be pushed for the commit. Enter the commit message. This message is a message that allows you to recall what all changes were made to the project files. So, mention all the changes that were made to the project files.

In Git there are a few commands about which you must be aware of.
Commit: The commit command does create a copy of the code and files remotely. This GitHub integrated commit allows version control of the files.

 

UiPath-Commit
UiPath-Commit

14

One the commit is clicked the Project is now mapped. To verify, go back to the home tab, then in the project panel right-click the Project, you now see the Git and version control options in the Project.

Please note that up till the previous steps, the source code of UiPath still resides on your local laptop or computer. To move the code to the remote repository, the code must be pushed.

Push is the command used to push the copy of the code to the remote repository. Click Push to send copy of the code to the remote repository

 

UiPath-Git-hub-Integrated
-UiPath-Git-hub-Integrated

15

As soon as push is clicked the manage remotes window appears. In this window you see the remote repositories that are mapped. As we are mapping the Project for the first time. There are no remote repository. To map the repository enter repository name, GitHub Url copied in the previous steps, click add.

 

Github-UiPath-Manage-Repo
Github-UiPath-Manage-Repo

16

As soon as you click Add the enter credential window appears. In this window  enter the username and the password of the Git repository

 

Github-UiPath-authenticate

18

Once the authentication is successful the remote repository is mapped click save.

 

Github-UiPath-Save-repo
Github-UiPath-Save-repo

19

As soon as you click save. The below message appears. Click overwrite remote content to complete the push of code to remote GItHub Portal

 

Github-UiPath-Push-To-Github
Github-UiPath-Push-To-Github

20

Go back to the GitHub portal to verify that the files have been pushed to the remote repository.

 
Github-UiPath-Verify-Uploaded-Code
Github-UiPath-Verify-Uploaded-Code
 

Now your code is mapped to GitHub repository. Every time you create a new file you could push the files to remote repository to save your code, maintain the versions. create branches, manage deployments, etc.

Rpa logo 230x46 1

Copyright © 2018 BWS Consulting Company