小编Tay*_*Rae的帖子

Nexus 3 Repository Manager 在不使用用户界面的情况下创建(或运行预生成)任务

当我尝试每周重新启动 Nexus3 容器并连接到我拥有的 S3 存储桶时,出现了这个问题。我将容器设置为可以很好地连接到 S3 存储桶(它[A-Z,0-9]-metrics.properties每次都会创建一个新文件),但在查看 UI 时找不到以前的工件。

我使用了Repair - Reconcile component database from blob storeUI 设置中的任务,效果非常好!

但是...前面的所有步骤都是通过脚本自动完成的,我希望Reconciling the blob store的最后一步也是如此。

Connecting to the S3 blob store is done with reference to examples from nexus-book-examples. As below:

Map<String, String> config = new HashMap<>()
config.put("bucket", "nexus-artifact-storage")
blobStore.createS3BlobStore('nexus-artifact-storage', config)
Run Code Online (Sandbox Code Playgroud)

AWS credentials are provided during the docker run step so the above is all that is needed for the blob store set up. It is …

api groovy task amazon-s3 nexus3

5
推荐指数
1
解决办法
1359
查看次数

标签 统计

amazon-s3 ×1

api ×1

groovy ×1

nexus3 ×1

task ×1