我正在设置基于Jenkins的CI / CD服务器。出于CD目的,我想将此构建结果(在我的案例中为Android APK)发布到数据服务器。我选择一个基于Openstack的OVH服务器进行数据存储。 我使用JCloud Jenkins插件连接到它但是我失败了。
我使用 Swift 作为提供商名称填充 JClouds云存储设置部分。 我设置了一个创建文件的测试版本,我尝试将此文件上传到存储服务器。我添加了发布工件到JClouds云存储但不幸的是,当我运行构建时出现以下错误:
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)?我该如何配置?
感谢您的帮助!
答案 0 :(得分:0)
看看Jenkins UI,看起来没有提供端点的文本框,所以我现在说它只支持提供者(不是通用的api部署,例如通用的Swift部署)。我向Jenkins插件打开了一个jira问题,因为它似乎是一个非常简单的修复方法。
顺便说一句,您是在尝试将其上传到本地Swift安装,还是使用Rackspace或其他已知的Swift提供商?