Ant deploy with jenkins


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

将 Antlib.jar 文件添加到 Ant_Home/lib 文件夹中,然后重试。

最新更新