0

社内で Artifactory と Ivy とともに Jenkins のインストールを開始したところです。

Jenkins は Ant ビルド スクリプトを呼び出し、これらのスクリプトは Ivy を使用して、ローカル リポジトリ (のみ) から jar を取得します。

2 つのローカル リポジトリが必要です。1 つはローカル アーティファクト用、もう 1 つはサード パーティの jar 用です。

私たちの目的は、Artifactory の管理者によって「承認」されたサードパーティの jar のみを開発者が確実に取得できるようにすることです。

ビルド スクリプトはローカル リポジトリからフェッチされます。

私の質問は次のとおりです。ビルドされたアーティファクトを含めるためにローカルリポジトリをセットアップするにはどうすればよいですか? インターネットにアクセスできない場合、Artifactory はサードパーティの jar をどのように取得しますか?

これを行うより良い方法はありますか?

4

1 に答える 1

2

I'm not sure if I'm missing something, but setting up the local repository for your build artifacts should be straightforward, just follow the instructions in the Artifactory docs.

You would need to configure your build system to publish new artifacts to Artifactory. This is also straightforward if you're using a standard dependency management tool like Maven or Ivy, and is covered in the Artifactory docs.

Keeping a separate repo for 3rd party JARs is also not too hard; at my company we do this by submitting the JARs to source control, which triggers a build in our CI system that publishes the JARs to Artifactory.

If you want to give more details of your build and CI setup I can add additional guidelines.

于 2012-08-08T18:23:52.617 に答える