1 Download and Upgrade to 15.0+ Series
2 New Features of ZenTao 15 Series
3 Interface Changes of 15 Series
4 Update to the Latest Version
5 Quick Start of 15 Series
6. Basic Application of Version 15
6.1 Beginner
6.2 Add Integrally
6.3 API Library
7. Base On The Roles
7.1. Admin
7.1.1 Edit Departments and Team Members
7.1.2 Edit Users
7.1.3 Edit Privilege
7.2. Program Leader
7.2.1 Create a Program
7.2.2 Link to Products
7.2.3 Create a Project
7.2.4 Manage Staffs
7.2.5 Add a Program Stakeholder
7.3. Product Owner
7.3.1 Create a Product
7.3.2 Edit Modules
7.3.3 Product Multi-branch/Platform Management
7.3.4 Edit Plans
7.3.5 Edit Stories
7.3.6 Review a Story
7.3.7 Create a Release
7.3.8 Tracking Progress
7.4. Project Manager
7.4.1 Edit Projects and Execution
7.4.2 Edit Teams
7.4.3 Link to Stories
7.4.4 Split Tasks
7.4.5 Tracking Progress
7.4.6 Waterfall Project
7.4.7 Kanban Project
7.5. Development Team
7.5.1 Apply for Tasks and Bugs
7.5.2 Update Status
7.5.3 Complete Tasks and Bugs
7.5.4 Submit Codes
7.5.5 The General Kanban, Story Kanban, Bug Kanban, and Task Kanban
7.6. Test Team
7.6.1 Edit Users' Case
7.6.2 Execute Users' Case
7.6.3 Submit a Bug
7.6.4 Test and Close a Bug
8. DevOps Features
8.1 Git/SVN Repository Management and Viewing Code
8.2. Integrate GitLab
8.2.1 Integrate GitLab, Bind Users, Link to Issues and Create a Build
8.2.2 Integrate GitLab and Submit the Merge Requests
8.2.3 GitLab Privilege in ZenTao
8.3 Integrate Jenkins and Create a Build
8.4 Integrate SonarQube
9 General Kanban
10. Backstage Settings of Version 15
10.1 Desktop
10.2 Model
10.3 Custom
10.4. Message
10.4.1 Mail
10.4.2 Webhook
10.4.3 Browser
10.4.4 Settings
10.5 Extension
10.6 Secondary Development
10.7 System
10.8 Import Jira Data
10.9 Registration Menu and Privilege
11. Privileges Management and Access Control of Version 15
11.1 Privileges Management and Access Control for Programs
11.2 Privileges Management and Access Control for Products
11.3 Privileges Management and Access Control for Projects
11.4 Privileges Management and Access Control for Executions
11.5 Access Control and Data Relationships for Projects and Executions

Git/SVN Repository Management and Viewing Code

2022-01-27 11:47:04
Hongyan
2419
Last edited by Hongyan on 2022-01-30 09:23:12
Share links

Git/SVN Repository Management and Viewing Code

DevOps in ZenTao integrates Git and SVN repository management.


After the integration is completed, you can:

  • Maintain repositories for Git and SVN
  • Synchronize code with Git and SVN
  • View the code directory
  • View code
  • Diff
  • Blame
  • View the code submitted according to the instruction on the Task, Bug, and Requirement details page

Next, we will introduce these features above in detail.

1. Maintaining Git repository

1.1 Create a Git-type repository

Click the Create button on the top right corner.

Product: Could be one or more products

 

Type: Git

 

Client Path (Desktop Path): Generally fill in the default /usr/bin/git

 

The desktop version needs to be checked for safety reasons, please write the version in the file and run the command directly.

 

Privilege: Authorized users can view the repository if Group and User are left blank. If the Group and User are filled in, only the Group list and User list members can access.

1.2 Edit and delete a Git-type repository

After the Git-type repository is created it will jump to the Code menu and start synchronizing the code.

 

You can view the newly added Git-type repositories on the list. 

You can also edit and delete through the action buttons on the right side of the repository list. 

1.3 Browsing code in Git-type repositories

After the Git-type repository code is synchronized, you can view it under the Code menu.


You can view the code of different branches and the code directory. 

2. Maintain SVN type repository

2.1 Create an SVN type repository

Click the Create button on the top right corner.

Product: Could be one or more products

 

Type: SVN

 

Client Path (Desktop Path): Generally fill in the default /usr/bin/git


Path: SVN Path


Desktop Path: Generally fill in the default /usr/bin/svn


Username and Password: Fill in the user name and password to access the SVN


Privilege: Authorized users can view the SVN repository if Group and User are left blank. If the Group and User are filled in, only the Group list and User list members can access. 

The desktop version needs to be checked for safety reasons, please write the version number in the file and run the command directly. 

2.2 Synchronize and view SVN repository code

After the repository is created it will jump to the Code menu and start synchronizing the code. 


After the code synchronization is completed, you can view it now. 

2.3 Edit and delete an SVN repository

You can view it in the repository list if the SVN is created successfully.

 

The repository can be edited and deleted through the operation buttons on the right. 

3. Synchronize the Git/SVN repository code

3.1 Manual refresh and synchronize

The last update time is shown in the top right corner.

 

Click Refresh to synchronize. 

3.2 Regular tasks synchronization

3.21 Utilize Cron in ZenTao system

Go to More--Admin--System--Cron to check if the status of Synchronize with Git and Synchronize with SVN are working normally.

Notice: The following operations need to be done after the modification: More--Admin--System--Cron Off =>> Restart Apache =>> More--Admin--System--Cron Active

3.22 Utilize Cron built-in the operation system

Windows: Control panel--Plan and Task


Linux: Crontab

4. View Git/SVN repository code

4.1 View

You can view the Directory, Revision, Commit Date, Committer, and Comments. 

4.2 Blame

Click the Blame button of the code page to view the Revision, Committer, and the specific code information.

4.3 Diff

Click Diff and then the differences can be compared both in-line and parallel.

5. Deploy rules

There is the default command configuration for tasks, bugs, and requirements, and you can also modify and adjust them according to your requirements.

 

The code submitted according to the configuration instructions will be reflected in the history of tasks, bugs, and requirements.

 

Instruction settings page and example: 

In the task history, you can click view diff to view directly.

On the Bug details page, you can click view diff in the history record to view directly. 

Write a Comment
Comment will be posted after it is reviewed.