promote artifacts using rest api /api/build/promote error unable to find artifacts of build -


my payload is:

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'} 

i trying

response = requests.post(self.url+'/api/build/promote'+buildurl+'/2', payload, headers=headers, auth=('', '')) 

getting error:

{"errors": [{"status": 400, "message": "unable find artifacts of build 'it-gis-ats :: pmstack2 :: pm1-pm1' #2: aborting promotion."}]} 

i have 4-5 builds @ location can seen in artifactory can please me on this.

i had similar issue, , problem not promotion, publish. have make sure add following properties artifact, since that's how artifactory links build , artifact:

build.name build.job build.number build.timestamp # not sure if 1 needed 

artifactory great product, documentation lacks lot of detail.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -