Jenkins uses new experience

Source: Internet
Author: User


Company to CI, to be exact, is that I want to on CI, no matter the other project group use, my product is must use. CI benefits from needless to say. CI free tools, most commonly used is Jenkins, which is Hudson.
Before the environment, also used, has been very handy. But this time there are still a lot of new problems, summed up as follows:
1, SVN Chinese catalog problem, this problem is very annoying, engaged in an afternoon, has not encountered before is because the old club SVN is not allowed to appear in the Chinese directory. Now the owners, many projects are Chinese catalogs, so must be resolved, tried various methods, found that the SVN plugin bug, so updated.
If you have a similar problem, update the SVN and credentials plugins If your Jenkins is deployed under Tomcat, encode the Tomat server.xml to bits utf-8 <connector port= "8080" Protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443" uriencoding= "Utf-8"/>
What if it doesn't work? Change the character set encoding in the browser such as changing the character set encoding format in Chrome or Firefox, since the SVN server's character set encoding defaults to Utf-8, it's important to keep the character set encoding consistent for the three. Of course, the best solution is not to set up a Chinese directory in SVN, all in English, Chinese is very inconvenient to deal with.


2. When using Tomcat to deploy Jenkins, you can rename Jenkins root and delete other items under WebApp localhost:8080 can be accessed.
It 's easy, but when you install Tomcat as a Windows service, you have a problem, and it's really not Jenkins's problem, it's my problem.
using the Tomcat 7.0.39 version of the free installation version, after decompression, into the installation directory under the Bin directory, enter the command: Service.bat install, enter service.msc in the CMD Run box, click TOMCAT7 Service, start failure!

Why would you want to install it as a Windows service? If you do not start with Tomcat as a Windows service, but instead manually start (startup.bat), Jenkins often crashes during use, prompting out of memory.

Phenomenon Analysis:

1) The Win7 program needs to be run as an administrator. That's the root cause of the problem.

2) I use the shortcut keys of Win + R to run cmd and service.msc, without running as Administrator, is the root cause of the problem

Solution:

1) Enter C:\Windows\System32 directory, right-click cmd, run cmd as Administrator

2) Enter Tomcat's Bin directory, execute command: SC delete tomcat7 Delete TOMCAT7 service succeeded

3) Execute command: Service.bat Install, installation TOMCAT7 service successful

4) Run Service.msc, view the service, discover that the previous "TOMCAT7" service is gone, the new service name bit "Apacha TOMCAT7"


3. If deployed in Tomcat, no access to Jenkins in the LAN Please close or configure the firewall. Let me down, long time.

4. Can't find the parent project resource? I built it in eclipse, okay? It's still good.
in Jenkins, the task name must be the same as the project name, otherwise the subproject may not find a resource file in the parent project.

5, the last of this wonderful problem, not I met, but put here, let everyone warning!
after SVN is configured, execution of the Jenkins job build information is always:
Org.tmatesoft.svn.core.SVNException:svn:E195012:Unable to find repository location for ' svn:// se-repo.twi1.electronics.ruag.com/repos/exconbasis/tags/release4.1/4.1.2.8 ' in revision ' 5 ' 842 '

But the current version of the Repository is not ' 5842 ' but ' 6874 ', which makes people very puzzled why Jenkins went to this library to fetch files, to troubleshoot the whole day, and finally find the problem,

Mentioned in https://issues.jenkins-ci.org/browse/JENKINS-3342

When was the branch created?  I ' m guessing the error message may actually becorrect (that's path did not exist at revision 12430), and the problem are Whyis It trying that revision?can you check the clock difference between Hudson Server and SVN server?

This issue was resolved after the Jenkins server time was changed because Jenkins was in a server system time that was not at all consistent with the SVN server's system time, resulting in an error. It is not yet possible to determine if Jenkins is using the system time to calculate the SVN server revision version.


6, finally additional to send everyone a small gift, install the local plug-in, you can make Jenkins instantly support Chinese, if you want to practice English, the plug-in can also be done oh, is better than the official Chinese version of half English half Chinese comfortable.

Company CI is my ride, no one use, want to promote a thing or very laborious, you do not, my own project with, must let you see the advantage, this morning received a build failure report, steal Hi, wait to see ...


Jenkins uses new experience

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.