Jenkins+git (SVN) +ant (Maven)

Source: Internet
Author: User

2013-6-25

Management: Jenkins

Implementation: Ant (Maven)

Coordination: Git (SVN)

The following are some of the problems that have been encountered today, as detailed below:



(1)

q:started by User Anonymous
Building in Workspace/var/lib/jenkins/jobs/helloword/workspace
[Helloant] $ ant-file build.xml
Fatal:command execution failed. Maybe you need to configure the job to choose one of your Ant installations?
Java.io.IOException:Cannot Run program, "Ant" (in Directory "/home/xiongmc/android/project/workspace/helloant"): java.io.ioexception:error=2, No such file or directory
==========================================
A:
Http://www.yolinux.com/TUTORIALS/Jenkins.html


Or

Configure System
Configure Global Settings and paths.


Summarize:
Jdk_home and Ant_home are not configured.

(2)

q:started by User Anonymous
Building in Workspace/var/lib/jenkins/jobs/helloword/workspace
[Helloant] $/opt/apache/apache-ant-1.9.1/bin/ant-file build.xml
BuildFile:/home/xiongmc/android/project/workspace/helloant/build.xml


Main
[Javac]/home/xiongmc/android/project/workspace/helloant/build.xml:10:warning: ' Includeantruntime ' is not set, Defaulting to Build.sysclasspath=last; Set to False for repeatable builds
[Javac] Compiling 1 source file to/home/xiongmc/android/project/workspace/helloant/build/classes
[Javac]/home/xiongmc/android/project/workspace/helloant/src/com/hht/ant/mainant.java:8: Error: An error occurred while writing to MainAnt:/home/ Xiongmc/android/project/workspace/helloant/build/classes/com/hht/ant/mainant.class (Insufficient permissions)
[Javac] public class mainant{
[Javac] ^
[Javac] 1 errors


Build FAILED
/home/xiongmc/android/project/workspace/helloant/build.xml:10:compile failed; The compiler error output for details.


Total time:0 seconds
Build Step ' Invoke Ant ' marked build as failure
Finished:failure



A:
xiongmc@xiongmc-desktop:~/android/project/workspace$ sudo chmod 777 helloant/-r[sudo] password for XIONGMC:
xiongmc@xiongmc-desktop:~/android/project/workspace$ ls-l
Total Dosage 8
DRWXRWXRWX 6 XIONGMC xiongmc 4096 June 10:37 helloant


================
Summarize:
Passive interception, the facts already exist in the checkpoint.
Active interception, set up checkpoints.

Extrapolate






(3) Jenkins does not have a git plugin that needs to be installed through configuration installation. Jenkins for Git Plguin http://www.linuxidc.com/Linux/2011-12/49602.htm


Building ROBOTIUM+JENKINS+TMTS Sustainable Integration Automation test under Linux
Http://www.linuxidc.com/Linux/2013-06/85633.htm




(4) In order to integrate to SCM, we install git on LinxuServer。 Http://www.examw.com/linux/all/182529/index-2.html

Creating a git server on Linux
http://lionest.iteye.com/blog/1447310
http://blog.csdn.net/andy_android/article/details/6996134



(5) through the GIT server, the following problems occur with the branch. Q:
xiongmc@xiongmc-desktop:~/myproject.git$ git push Origin master Ssh:connect to host Xiongmc-desktop Port 22:connection r Efused
Fatal:the remote end hung up unexpectedly
xiongmc@xiongmc-desktop:~/myproject.git$ git push Origin master
Ssh:connect to host Xiongmc-desktop Port 22:connection refused
Fatal:the remote end hung up unexpectedly


A:
http://blog.csdn.net/zlm_250/article/details/7979221


sudo apt-get install Openssh-server
sudo net start sshd
sudo ufw disable
SSH localhost


(6) Q:
Ubuntu system under "About ' xx ' user is not in sudoers file, this matter will be reported." "The Solution


A:
Http://blog.sina.com.cn/s/blog_bede36550101b0av.html
Git all= (all:all) all


(7)
Q:
xiongmc@xiongmc-desktop:~/myproject.git$ git push Origin master
Git@xiongmc-desktop ' s Password:
Fatal: '/opt/git/project.git ' does not appear to be a git repository
Fatal:the remote end hung up unexpectedly


A:
http://www.dotkam.com/2010/08/22/gitolite-does-not-appear-to-be-a-git-repository/

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.