【问题标题】:Openstack swift plugin on JenkinsJenkins 上的 Openstack swift 插件
【发布时间】:2016-06-30 22:06:45
【问题描述】:

我正在建立一个基于 Jenkins 的 CI/CD 服务器。出于 CD 的目的,我想将此构建结果(在我的情况下为 Android APK)发布到数据服务器。我选择基于 Openstack 的 OVH 服务器进行数据存储。 我使用 JCloud Jenkins 插件连接到它,但我失败了。

我用 Swift 作为提供者名称填写了 JClouds 云存储设置 部分。 我设置了一个创建文件的测试版本,并尝试将此文件上传到存储服务器。我添加了将工件发布到 JClouds Clouds Storage,但不幸的是,当我运行构建时,出现以下错误:

Publish artifacts to JClouds Clouds Storage  Using JClouds blobStoreProfile: ProjectName - OVH - Storage
Publish artifacts to JClouds Clouds Storage  container=ContainerName, path=test, file=test.txt
ERROR: Build step failed with exception
java.util.NoSuchElementException: property swift.endpoint not present in properties: [jclouds.user-threads, jclouds.identity, jclouds.max-session-failures, jclouds.max-connection-reuse, jclouds.scheduler-threads, jclouds.credential, jclouds.build-version, jclouds.iso3166-codes, jclouds.blobstore.metaprefix, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.regions, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
    at org.jclouds.ContextBuilder.searchPropertiesForProviderScopedProperty(ContextBuilder.java:293)
    at org.jclouds.ContextBuilder.resolveProperties(ContextBuilder.java:412)
    at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:316)
    at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:618)
    at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:598)
    at jenkins.plugins.jclouds.blobstore.BlobStoreProfile.ctx(BlobStoreProfile.java:79)
    at jenkins.plugins.jclouds.blobstore.BlobStoreProfile.upload(BlobStoreProfile.java:105)
    at jenkins.plugins.jclouds.blobstore.BlobStorePublisher.perform(BlobStorePublisher.java:159)
    at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
    at hudson.model.Build$BuildExecution.post2(Build.java:185)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
    at hudson.model.Run.execute(Run.java:1745)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Build step 'Publish artifacts to JClouds Clouds Storage ' marked build as failure
Finished: FAILURE

我没有找到任何明确的文档。我应该在哪里设置 swift.endpoint (应该对应于身份验证 URL)?我应该如何配置它?

感谢您的帮助!

【问题讨论】:

    标签: jenkins openstack openstack-swift jclouds


    【解决方案1】:

    查看 Jenkins UI,似乎没有提供端点的文本框,所以我现在说它只支持提供程序(不支持通用 api 部署,如通用 Swift 部署)。我会向 Jenkins 插件打开一个 jira 问题,因为它似乎是一件很容易解决的事情。

    顺便说一句,您是在尝试将其上传到本地 Swift 安装,还是在使用 Rackspace 或其他已知的 Swift 提供程序?

    【讨论】:

    • 我认为你是对的,我挖掘了代码并发现了这个:github.com/jenkinsci/jclouds-plugin/blob/… 我将创建一个 Jira 问题,如果我有时间安装所有工具,我会创建拉取请求。我将使用已知的 Swift 提供程序(对于法国人)。我不知道是否允许链接,您可以检查一下:ovh.com/us/cloud/storage/object-storage.xml 它符合我的需求并且托管在我的国家(符合我知道的法律)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-10-10
    • 2018-09-03
    • 1970-01-01
    • 1970-01-01
    • 2022-11-11
    • 2016-02-20
    • 2015-07-14
    相关资源
    最近更新 更多