我们使用Artifactory Pro。 我们有一个虚拟仓库,我们已经存储了yarn 23.04的安装程序。 在另一个例子中,我们运行了Jenkins 1服务器。我们有一些maven项目,我们的maven目标是执行:
clean source:jar install -DskipTests -Pyarn -X
我们使用轮廓纱线,因此将执行yarn install
。
我们没有使用任何有关我们配置的代理。我们已明确禁止它们
jenkins工作大部分时间都在工作:
[INFO] yarn install v0.23.4
[INFO] [1/4] Resolving packages...
[INFO] [2/4] Fetching packages...
[ERROR] warning fsevents@1.1.1: The platform "linux" is incompatible with this module.
[INFO] info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [3/4] Linking dependencies...
[ERROR] warning "ng2-translate@5.0.0" has incorrect peer dependency "@angular/core@^2.0.0".
[ERROR] warning "ng2-translate@5.0.0" has incorrect peer dependency "@angular/http@^2.0.0".
[ERROR] warning "sass-loader@6.0.5" has incorrect peer dependency "webpack@^2.0.0".
[INFO] [4/4] Building fresh packages...
[INFO] success Saved lockfile.
但在某些情况下它失败了:
[INFO] yarn install v0.23.4
[INFO] [1/4] Resolving packages...
[ERROR] an unexpected error occurred: "http://xxx/artifactory/api/npm/npm/xxx: Request\ "http://xxx/artifactory/api/npm/npm/xxx" returned a 403
纱线在我们的神器中。因此,我们认为唯一的问题可能是jenkins和Artifactory之间的“糟糕连接”或者在Artifactory上运行的apache。
Apache中是否存在某些可能导致Artifactory行为的特定设置?