As a continuous integration of the sharp weapon Jenkins has been widely used, just as a tool, Jenkins already has its own biosphere, supporting its plugin is more than 1300 +. How to use the Jenkins in practice and how to use it better has always been practiced and discussed by everyone. This series of articles will summarize and collate some details on how to use the Jenkins aspect, which will explain how to implement the Jenkins integration with Redmine in advance
As long as there is a Jenkins, there is no use of Jenkins official mirror or installation package, or the use of easypack encapsulated in the basic consistent Jenkins.
Docker Pull Mirroring
[Root@liumiaocn ~]# Docker pull liumiaocn/jenkins
Using default tag:latest
latest:pulling from liumiaocn/ Jenkins
digest:sha256:87c954f71bc3ce1ba5d001bfbae501f9965368c16f0111ef951350376c2f6832
Status:image is Up to date for liumiaocn/jenkins:latest
[ROOT@LIUMIAOCN ~]#
Start Jenkins Mirroring
Docker run-d-P 8090:8080-p 50000:50000–name Jenkins Liumiaocn/jenkins
[ROOT@LIUMIAOCN ~]# Docker run-d-P-8090:8080-p 50000:50000--name Jenkins liumiaocn/jenkins 63dc2d52de03074858a6b6
1db4955345a66cfd436c5a47384924e9e3f8177778
[ROOT@LIUMIAOCN ~]#
plugin
Integration with Redmine is also done through plug-ins, the need to install Redmine plugin Plug-ins, the current version is 0.20, by using this plug-in can make redmine more easily integrated recently. In addition Redmine also support Plug-ins, if the Jenkins integrated into the redmine inside, that is another plug-in. A detailed description of the Redmine plug-in in Jenkins is shown in the following illustration
installation
You can use the Jenkins Plug-in management page for installation, or you can use its ID (redmine) to install and restart mirroring in a mirror.
[ROOT@LIUMIAOCN ~]# Docker exec-it Jenkins SH/$ install-plugins.sh redmine Creating-initial locks ...
Analyzing war ...
Downloading plugins ... Downloading Plugin:redmine from Https://updates.jenkins.io/download/plugins/redmine/latest/redmine.hpi > Redmine Depends on subversion:2.0.1 downloading plugin:subversion from https://updates.jenkins.io/download/plugins/ Subversion/latest/subversion.hpi > Subversion depends on Workflow-scm-step:1.14.2,credentials:2.1.4,mapdb-api : 1.0.1.0,scm-api:2.0.8,ssh-credentials:1.6.1 downloading Plugin:workflow-scm-step from https://updates.jenkins.io/ Download/plugins/workflow-scm-step/latest/workflow-scm-step.hpi downloading plugin:credentials from https:// Updates.jenkins.io/download/plugins/credentials/latest/credentials.hpi downloading Plugin:mapdb-api from https:// Updates.jenkins.io/download/plugins/mapdb-api/latest/mapdb-api.hpi downloading Plugin:scm-api from https:// UPDATES.JENKINS.IO/DOWNLOAD/PLUGINS/SCM-API/LATEST/SCM-API.HPI Downloading plugin:ssh-credentials from https://updates.jenkins.io/download/plugins/ssh-credentials/latest/ Ssh-credentials.hpi > Workflow-scm-step depends on workflow-step-api:2.9 downloading Plugin:workflow-step-api from H TTPS://UPDATES.JENKINS.IO/DOWNLOAD/PLUGINS/WORKFLOW-STEP-API/LATEST/WORKFLOW-STEP-API.HPI > Credentials Depends on structs:1.7 downloading plugin:structs from https://updates.jenkins.io/download/plugins/structs/latest/ Structs.hpi > Ssh-credentials depends on credentials:2.1.0 > Workflow-step-api depends on structs:1.5 WAR bundled plugins:installed plugins:credentials:2.1.14 display-url-api:2.0 git-client:2.4.6 git:3.3.1 gitlab-plugin:1.4.6 ry:1.11.2-0 junit:1.20 mailer:1.20 mapdb-api:1.0.9.0 matrix-project:1.11 redmine:0.20 scm-api:2.1.1 script-security
: 1.29 sonar:2.6.1 ssh-credentials:1.13 structs:1.9 subversion:2.8 workflow-scm-step:2.6 Cleaning up locks/$ exit [ROOT@LIUMIAOCN ~]# Docker Restart Jenkins Jenkins [Root@liuMIAOCN ~]#
Plug-in Installation Confirmation
Confirm that this plugin has been installed after reboot
Set Content
The Redmine related content of System Management-> system Setup is the content that needs to be set up
set | up a project
Setting Method |
Set Content |
Redmine Connection Name |
Redmine-> Name |
Name of the Redmine connection |
URL of the Redmine |
Redmine->base URL |
The URL of the redmine that can be accessed |
Version |
Redmine-> Version Number |
Version number |
Detailed information is set out below:
The version number can be confirmed on the following page in Redmine
Attention Matters
Redmine need to open the following settings (Administration-> Settings-> API) (checked: Enable REST Web Service):
Summary
Jenkins and Redmine settings need to download and install the Redmine plug-in, and then you need to open the Redmine side Rest Web service before you set it up.