As a less often summarized person, since the work has encountered too many problems! Often resolved after no effective record, resulting in the need to re-check the data to solve. Now change the habit and try to make the technology.
The company recently advocated open source (what was previously confidential, even if open source did not change much), the code from SVN to git management, so that the original log of the wiki continuous integration job needs to be reconfigured. The previous settings were: Check for svn changes every minute, and compile the publication with changes. When you change to Git, you run into a bump, and a tie is below.
Jenkins's git plugin installation
git plugin,git client Plugin,github plugin, often installed, will be associated with the dependencies of the installation.
2. Configuration of git in Windows Master && Linux Slave
Installing Git on Windows is simple, and installing Git on Linux is "very simple". But git problems for Windows master and Linux slave = = head Big!
2.1
Cannot run Program "C:\Program Files (x86) \git\bin" (In Directory "/home/jenkins/workspace/wiki_git")
This is a very basic problem, in the Jenkins system configuration to change the configuration of Git to
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/4F/wKioL1YY4XfjIIpSAADCe4tii10123.jpg "title=" Timline picture 20151010175804.png "alt=" Wkiol1yy4xfjiipsaadce4tii10123.jpg "/>
This facilitates common use in Windows and Linux
2.2
error: error fetching remote repo ' origin ' hudson.plugins.git.gitexception: failed to fetch from http://source.jd.com/app/im4.1-wiki.gitat Hudson.plugins.git.GitSCM.fetchFrom (gitscm.java:763) at hudson.plugins.git.gitscm.retrievechanges ( gitscm.java:1012) at hudson.plugins.git.gitscm.checkout (gitscm.java:1043) at hudson.scm.scm.checkout ( scm.java:484) at hudson.model.abstractproject.checkout (abstractproject.java:1259) at Hudson.model.abstractbuild$abstractbuildexecution.defaultcheckout (abstractbuild.java:622) at Jenkins.scm.SCMCheckoutStrategy.checkout (scmcheckoutstrategy.java:86) at hudson.model.abstractbuild$ Abstractbuildexecution.run (abstractbuild.java:528) At hudson.model.run.execute (Run.java:1759) at Hudson.model.FreeStyleBuild.run (freestylebuild.java:43) At hudson.model.resourcecontroller.execute ( resourcecontroller.java:89) At hudson.model.executor.run (executor.java:240) Caused by: hudson.plugins.git.GitException: Command "/usr/libexec/git-core/git config --local credential.username guoweiwei " returned status code 129:stdout: stderr: error: unknown option ' Local ' usage: git config [options]
The GIT version installed in Linux is too low to be upgraded
2.3
Fatal:unable to find Remote helper for ' http '
After upgrading the version, the reason is compile-time, Libcurl is not installed, etc., the following steps:
A. Download the git version you need to install
B. Unzip
C. Yum Install Libcurl-devel
D. Yum Install Perl-extutils-makemaker package (Can ' t locate extutils/makemaker.pm in @INC (@INC contains:/usr/local/ lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr/ Share/perl5.) At makefile.pl Line 3.)
E. Yum install TK zlib-devel openssl-devel perl cpio expat-devel gettext-devel (MSGFMT po/de.msg make[1]: * * * [po/de.ms G] Error 127)
F../configer--with-curl--with-expat
G. Make && make install
2.4
Git Polling log Hint "FATAL:hudson.plugins.git.GitException:Error performing Command:c:\windows\temp\ hudson11232435"and cannot detect a git update for automatic build
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/52/wKiom1YY5jCxB3dHAAHFOC0btXo179.jpg "title=" Timline picture 20151010181907.jpg "alt=" Wkiom1yy5jcxb3dhaahfoc0btxo179.jpg "/>
This article is from the "Can't Get Technology" blog, please be sure to keep this source http://jdcdyjy.blog.51cto.com/10778026/1701639
Jenkins uses Git for source management (Windows Master && linux Slave)