我的有效负载是:
payload = json.dumps({ "status": "staged", "comment": "testing.", "ciUser": "builder", "dryRun": "false", "targetRepo": "ext-release-local", "copy": "true", "artifacts": "true", "dependencies": "false", "scopes": [ "compile", "runtime" ], "properties": { "components": [ "c1", "c3", "c14" ], "release-name": [ "fb3-ga" ] }, "failFast": "true" })
headers = {'content-type': 'application/json'}我在努力
response = requests.post(self.url+'/api/build/promote'+buildURL+'/2', payload, headers=headers, auth=('', ''))获取错误:
{"errors": [{"status": 400, "message": "Unable to find artifacts of build 'IT-GIS-ATS :: pmstack2 :: pm1-pm1' #2: aborting promotion."}]}我在这个地方确实有4-5个构建,可以在artifactory中看到,你能在这方面帮助我吗。
发布于 2015-10-05 21:11:20
我也遇到过类似的问题,问题不在于推广,而在于发布。您必须确保将以下属性添加到工件中,因为这是Artifactory链接构建和工件的方式:
build.name
build.job
build.number
build.timestamp # Not sure if this one is neededArtifactory是一个很棒的产品,但是文档中缺少很多细节。
https://stackoverflow.com/questions/32857996
复制相似问题