用jenkins

时间:2017-06-19 14:15:55

标签: jenkins ant

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/workspace/mydep/build.xml:12: Problem: failed to create task or type antlib:com.salesforce:deploy
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -/var/jenkins_home/tools/hudson.tasks.Ant_AntInstallation/Ant/lib
        -/var/jenkins_home/.ant/lib
        -a directory added on the command line with the -lib argument

1 个答案:

答案 0 :(得分:0)

将Antlib.jar文件添加到Ant_Home / lib文件夹并再次尝试。

相关问题