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