mydep] $ /var/jenkins_home/tools/hudson.tasks.Ant_AntInstallation/Ant/bin/ant deploy
Buildfile: /var/jenkins_home/workspace/mydep/build.xml
[taskdef] Could not load definitions from resource /Users/mannesiddhardha/.ant/lib/antlib.xml. It could not be found.
deploy:
BUILD FAILED
/var/jenkins_home
我在Jenkins设置了一个运行ant的作业,它给出了以下错误:
First time build. Skipping changelog.
Unpacking https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.3-bin.zip to /var/lib/jenkins/tools/hudson.tasks.Ant_AntInstallation/default-ant on Jenkins
[my_project] $ /var/lib/jenkins/tools/hudson.tasks.Ant_AntInstalla
蚂蚁再也找不到蚂蚁的肋骨了,我很困惑,因为我不记得在机器上改变了什么。
$ ant -f ./build-ivy.xml
Buildfile: ./build-ivy.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
BUILD FAILED
/var/lib/jenkins/jobs/Lakshmi-MySQL/workspace/build-ivy.xml:41: Problem: failed to create t
我得到詹金斯蚂蚁构建错误如下所示。蚂蚁是在Jenkins配置的。单独使用ANT命令时,构建是成功的。无法在Jenkins日志中获得更多错误详细信息
[jenkins] $ ant -file projectworkspace war
What? Buildfile: projectworkspace is a dir!
Build failed
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
我建立了一个ant项目,并成功地构建了一个项目。
Started by user anonymous
Building in workspace /home/myusername/jenkins/workspace/ctascweb
[ctascweb] $ cvs -q -z3 update -PdC -r ctascweb-development-3_3_8 -D "Wednesday, November 28, 2012 10:20:13 PM UTC"
? ROOT.war
? build
U src/stdy/analyze/LoadSubjects.java
$ c
尝试在Jenkins中使用ant构建一个android项目,但我得到了一个异常。
我可以在控制台中用"sudo -u jenkins ant debug“重现这个错误。
/opt/android-sdk-mac_x86/tools/ant/build.xml:539: Unable to resolve project target 'android-17'
at com.android.ant.GetTargetTask.execute(GetTargetTask.java:160)
at org.apache.tools.ant.UnknownEle
我正在尝试将第三方监控解决方案(New )集成到我的Android应用程序中,该应用程序使用的是基于蚂蚁的构建。集成指令要求在执行ant命令执行构建之前将ANT_OPTS环境变量设置为-javaagent:{path to a jar file}。
当我从命令行手动启动ant时,这种方法非常有效。
但是,我们也通过Jenkins发布了ant构建。在Jenkins构建配置中,有一节用于配置ant构建。本节中有一个名为"Java选项“的条目。从其他地方搜索,我收集到这里是放置JVM参数的地方。通常,人们希望增加最大堆大小,等等。
所以我把它放在Java选项部分:
-javaagent:{p
我尝试通过URL启动Jenkins Ant作业(未参数化),并向该作业传递参数。为此,我在Ant中使用HTTP POST:
<taskdef name="http" classname="org.missinglink.ant.task.http.HttpClientTask"/>
<!-- using CDATA section to avoid having to escape the ampersand -->
<property name="jenkins.url"><![CDATA[${job.
我有一个工作正常的sonar/jenkins安装,其中sonar安装在localhost:9000上,jenkins安装在localhost:8080上。然后,我想将这些服务隐藏在Apache背后,并在经过群发身份验证的帐户访问背后保护它们。
因此,首先,我将Jenkins重新定位到localhost:8080/jenkins并代理它。它起作用了。
然后我将Sonar重新定位到localhost:9000/sonar并代理它。这也行得通。
但是现在,当我尝试在Jenkins的构建脚本中执行Sonar任务时,我得到了以下错误:
sonar:
[sonar:sonar] Apache Ant ve