API proxy (.zip file) deployment issue -downloading artifact from Nexus and deploy on Apigee cloud

Trying to deploy API proxy (.zip file) - in first step i build and deploy into dev environment using jenkins and same artifact API proxy (.zip file) we are uploading on nexus, next step we are trying to download proxy (.zip) from nexus and deploying on Apigee cloud but this deployment i am getting error like bad request 400 - 10:21:50 [ERROR] "message" : "Unable to read/find APIProxy contents", what may be the issue causing?

0 1 740
1 REPLY 1

I think there are two separate actions: import and deploy.

Import implies sending up the ZIP file.

Deploy implies making the proxy active and listening.

When you say "I am getting an error" I am inferring from the context that it is during import, not during deploy. Is that correct?

The import ought to be the equivalent of this :

curl -i -X POST \
   https://api.enterprise.apigee.com/v1/o/ORGNAME/apis/APINAME?action=import \
   -T bundle.zip -H "Content-Type: application/octet-stream"

Check that the binary data is sent up correctly, and check that the header is as required.