1. Introduction
1.1 About ZenTao
1.2 Introduction PDF
1.3 Technical Support
1.4 Follow Us
2. Installation
2.1 Choose the Right Installation
2.2 ZenTao Cloud
2.3 One-click Installation for Windows
2.4 One-click Installation for Linux
2.5 Lampp Installation in Linux
2.6 Source Code Installation (for all systems)
2.7 Source Code Installation for macOS
2.8 XAMPP-VM Installation for macOS
2.9 XAMPP Installation for macOS
2.10 Install ZenTao in Docker
2.11 Install httpd, Mariadb, PHP 7.2 in Cent OS 8
2.12 Softaculous Service
2.13 Install Ioncube
3. Update
3.1 Update ZenTao
3.2 Update Via Source Code (For All Systems)
3.3 Update for One-Click Installation for Windows (xampp)
3.4 Update for One-Click Installation for Linux
4. Users and Groups
4.1 Company Structure
4.2 Add a User
4.3 Manage Users in batches
4.4 Groups and Privileges
5. Quick Start
5.1 Project and Task Management
5.2 Bug Tracking
5.3 Product Management
5.4 Todo Management
6. Basic Application
6.1 Basic Workflow
6.2 Agile and Scrum
6.3 ZenTao and Scrum
6.4 ZenTao Tutorial for Rookies
6.5 Create a Product
6.6 Create a Story
6.7 Create a Project
6.8 Confirm a Story
6.9 Decompose Stories into Tasks
6.10 Report a Bug
6.11 Manage Contacts
6.12 Customization
6.13 Import Excel, CSV Files
6.14 Document Management
6.15 Work Mode
6.16 Points
6.17 Required Field
6.18 Privileges
6.19 Annual Work Summary
7. Advanced Application
7.1. Workflow
7.1.1 ZenTao Workflow
7.2. Individual management
7.2.1 My Todo
7.2.2 My Task, Story and Bug
7.2.3 My Profile
7.3. Product Owner
7.3.1 Manage a Product
7.3.2 Manage a Product Line
7.3.3 Create and Review a Story
7.3.4 Change and Review a Story
7.3.5 Status and Phase
7.3.6 Story Writing
7.3.7 Product Module
7.3.8 Release Plan
7.3.9 Create a Release
7.3.10 Roadmap
7.3.11 Documents
7.3.12 Planning Meetings
7.3.13 Daily Scrum, Review and Retrospective Meetings
7.3.14 Story Reports
7.4. Scrum Master
7.4.1 Create a Sprint
7.4.2 Set a Team
7.4.3 Confirm a Story
7.4.4 Task Breakdown
7.4.5 Daily Standup Meetings
7.4.6 Check Project Progress via Burndown Chart
7.4.7 Check Project Progress via Lists
7.4.8 Review and Retrospective Meetings
7.4.9 Basic reports on tasks
7.5. Development Team
7.5.1 Project planning meeting and task breakdown
7.5.2 Claim tasks and update efforts
7.5.3 Kanban and Tree Diagram
7.5.4 Build
7.5.5 Test Request
7.5.6 Resolve a Bug
7.5.7 Documents
7.5.8 Confirm Bugs
7.6. Test Team
7.6.1 Bug Tracking
7.6.2 Report a Bug
7.6.3 Verify and Close a Bug
7.6.4 Activate a Bug
7.6.5 Find a Bug
7.6.6 Test Case
7.6.7 Create and Review Test Cases
7.6.8 Test Suites, Public Case Libs and Reports
7.6.9 Manage Test Requests
7.6.10 Run Cases and Report Bugs
7.6.11 Reports
8. Configuration
8.1. Maintain ZenTao
8.1.1 Initialize scripts
8.1.2 Data Backup
8.1.3 Recover the Deleted
8.1.4 Update Burndown Charts
8.1.5 ZenTao Remote Host
8.2. Deploy ZenTao
8.2.1 Guest Login
8.2.2 Email Notification
8.2.3 Set Super Admin
8.2.4 Static Access
8.2.5 Remove "zentao" from URL
8.2.6 Integrate SVN
8.2.7 Integrate Git
8.2.8 Integrate Webhook
8.2.9 Integrate Xuan.im
8.2.10 Integrate Zdoo
8.2.11 Integrate Third-Party Apps
8.2.12 Password-Free Login
8.2.13 Translation Add-on
8.2.14 Integrate Jenkins
8.2.15 Extension
8.2.16 Fix Weak Password
9. Customization
9.1 Introduction
9.2 Directory
9.3 Find Codes
9.4 Database Structure
9.5 Common Modules
9.6 Add Features to Menu
9.7 Set Privileges to Modules
9.8 Examples: modify language prompt
9.9 Examples: set priority when creating bugs
9.10 Extension Editor
9.11 Feature Limitation
9.12 ZenTao Packaging Standards 1.1
10. Misc
10.1 About Third-Party Code
10.2 Support ZenTao
10.3 ZenTao Service
10.4 Acknowledgement

Integrate Jenkins

2020-03-20 10:14:57
John Ten
6940
Last edited by Taotao on 2020-12-24 11:27:51
Share links

ZenTao open source 12.1.stable and up has the CI(Continuous Integration) module added, which includes features such as Jenkins.


1. Create a repo

Go to CI->Code. If no repo exists, you will be directed to the page to create a repo first.


  • Name: the name of a repository.
  • Path: the path of a repository, such as http://zentaoms.googlecode.com/svn. This path does not have to be a root.
  • Encoding:  utf-8 or GBK.
  • Client: the path of a client. In Linux, it might be / usr /bin/svn (for Git , it might be  / usr /bin/git). In Windows, you can download sliksvn which have been integrated into the one-click installation package( for Git, use msysGit), and then specify the path of svn.exe. (Tips 1. The client has to be installed on the same server that installed ZenTao; 2. The path of the SVN should not have spaces; 3. If using HTTPS, make sure that it is valid and the IP address should not be right after it.)
  • Username and password: account information of a repository . If you do not need a username and password, just leave it blank.

After clicking Save, ZenTao will be initialized and previous change logs are saved.


2. Browse a repo

You can browse a repo after configuration. Click Refresh and you can synchronize the code.


3. Diff files

Now you can view codes in ZenTao and compare and diff them.


4. Integrate Jenkins

4.1 Install Jenkins

It might take a while to install Jenkins. Refer HERE for Jenkins installation.


4.2 Start Jenkins


Create an item.


Set parameters.



Check Git and set repo URLs.



Set the Build.



 Execute shell


GIT
	===Jenkins export command===
	echo "PARAM_TAG = $PARAM_TAG";
	echo "PARAM_REVISION = $PARAM_REVISION";
	[ -z ${PARAM_TAG} ] || git checkout "${PARAM_TAG}"
	[ -z ${PARAM_REVISION} ] || git checkout "${PARAM_REVISION}"
	cat README
	===Note===
		Parameter
		PARAM_TAG:tag name
		PARAM_REVISION:revison number
		Initialize
		git clone https://gitee.com/aaronchen2k/ci_test.git
		Export tag
		export PARAM_TAG=tag111
		[ -z ${PARAM_TAG} ] || git checkout "${PARAM_TAG}"
		Export revision
		export PARAM_REVISION=6c3a7bf931855842e261c7991bb143c1e0c3fb19
		[ -z ${PARAM_REVISION} ] || git checkout "${PARAM_REVISION}"
SVN
	===Jenkins command after export===
	echo "PARAM_TAG = $PARAM_TAG";
	echo "PARAM_REVISION = $PARAM_REVISION";
	svn upgrade
	[ -z ${PARAM_TAG} ] || svn switch --ignore-ancestry "${PARAM_TAG}" 
	[ -z ${PARAM_REVISION} ] || svn up -r "${PARAM_REVISION}" 
	cat README
	===Note===
		Parameter
		PARAM_TAG:tag url
		PARAM_REVISION:revison number
		Initialize
		svn checkout --username aaronchen2k --password P2ssw0rd svn://svnbucket.com/aaronchen2k/ci_test_svn/trunk/ .
		Export tag
	    export PARAM_TAG=svn://svnbucket.com/aaronchen2k/ci_test_svn/tags/tag111
	    [ -z ${PARAM_REVISION} ] || svn upgrade
		[ -z ${PARAM_TAG} ] || svn switch --ignore-ancestry "${PARAM_TAG}" 
		Export revision
		export PARAM_REVISION=9
		[ -z ${PARAM_REVISION} ] || svn upgrade
		[ -z ${PARAM_REVISION} ] || svn up -r "${PARAM_REVISION}"



4.3 Integrate Jenkins in ZenTao

Go to CI->Jenkins and create Jenkins. 


5. Compile and create a job

Go to CI->Compile and click Create Job.

 

Trigger can be 


  • Git: a new tag is created in the repo
  • SVN:  a change of directories




  • Code Commit: a word in a comment that matches the keyword set here




  • Schedule: 



In order to make sure that it will be executed, go to Admin-> System-> Cron.


Execute the job manually.


You can also check the history.




6. Set rules

ZenTao will parse the comments of the repository according to the rules set here, and the matching tasks are processed accordingly.



Note:

Synchronize Git and SVN should be active in Admin->System->Cron.


If you have questions about Jenkins integration, contact us at [email protected].




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