Thanks, Noam.
But what about using the actual json request? how can I do that?

On Thu, Oct 27, 2011 at 10:18 AM, Noam Y. Tenne <[email protected]> wrote:

> Hi Nicky,
>
> It's not possible to deploy a file at the same time as deploying the file
> info, but if what you're after is sending the files checksum values in the
> same command as the deployment, you can change your command to include
> Artifactory's checksum headers; for example:
>
> curl --user deployer:deployerpass --upload-file dummy.jar
> -H"X-Checksum-Sha1:sha1Value" -H"X-Checksum-Md5:md5Value" "
> http://deployment-url";
>
>
> HTH,
> Noam
>
> On Wed, Oct 26, 2011 at 8:39 PM, Nicky Ramone <[email protected]> wrote:
>
>> Hi
>>
>> I'm trying to deploy an artifact via the REST API.
>> I want to do it from the command line so I'm using curl. But I'm not sure
>> how to send the json object with the extra data.
>>
>> This is how I'm doing it:
>> $ curl --user deployer:deployerpass --upload-file dummy.jar -d \
>> "
>> {
>>   'uri': ...
>>   'downloadUri': ...
>>   'repo': 'libs-snapshot-local',
>>   'path': 'app-partnerportal.jar',
>>   'created': ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ),
>>   'createdBy': 'legacy-bms',
>>   'size': '829894', //bytes
>>   'checksums':
>>   {
>>     'md5' : '999b44e5c729d4523e5c28500036a999',
>>     'sha1': 'aaa9d877903b1c21ac9369ba17c7721fb2df4bbb'
>>   },
>>   'mimeType': 'application/java-archive',
>> }" \
>>
>> http://myserver.com:8080/artifactory/libs-snapshot-local/com/dummygroup/dummy/1.0-SNAPSHOT/dummy-1.0-SNAPSHOT.jar
>>
>> It's like the json object is being ignored because the checksums are not
>> uploaded.
>> Can you tell me what I'm doing wrong?
>>
>> Thanks.
>>
>>
>> ------------------------------------------------------------------------------
>> The demand for IT networking professionals continues to grow, and the
>> demand for specialized networking skills is growing even more rapidly.
>> Take a complimentary Learning@Cisco Self-Assessment and learn
>> about Cisco certifications, training, and career opportunities.
>> http://p.sf.net/sfu/cisco-dev2dev
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to