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.
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.
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.
Create an account: Open the Git Hub Website and sign up the website.
Enter a username, email address, and password to complete account creation on GitHub.
Select the work and the programming experience according to your preferences
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.
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.
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.
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.
In the new Blank process window enter the project name, optional description, and click create.
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.
Now to connect or map this Project to GitHub, we click he file Menu button to go to the backstage view of UiPath.
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.
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.
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.
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
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.
As soon as you click Add the enter credential window appears. In this window enter the username and the password of the Git repository
Once the authentication is successful the remote repository is mapped click save.
As soon as you click save. The below message appears. Click overwrite remote content to complete the push of code to remote GItHub Portal
Go back to the GitHub portal to verify that the files have been pushed to the remote repository.
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.