私は 1 つの jenkins を os x サーバー (Lion) にインストールしており、ant スクリプトを呼び出して 1 つのサンプル プロジェクトをコンパイルしたいと考えています。
インストールには「jenkins」という専用ユーザーが 1 人いて、ssh インスタンスから彼をログに記録すると、コンパイル タスク (ivy のタスクを使用) を次のように正常に実行できます。
jenkins>ant compile
ant が Web インターフェイスによって呼び出されると、次のエラーが発生して問題が発生します。
Problem: failed to create task or type antlib:org.apache.ivy.ant:resolve
原因: ant がライブラリから ivy の解決タスクを正しくロードしていません。正解は本当にわかりません。jenkinsは「jenkins」ユーザーとしてコマンドを実行すると確信しています。
編集:詳細情報
BUILD FAILED
/Users/Shared/Jenkins/Home/jobs/example-build/workspace/build.xml:19: Problem: failed to create task or type antlib:org.apache.ivy.ant:resolve
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:
-/usr/share/ant/lib
-/Users/Shared/Jenkins/Home/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE