Yeah, I have, but could never see the JSON response.
It's no big deal, though. At least I get the HTTP response telling me that
it succeeded.
On Thu, Oct 27, 2011 at 12:40 PM, Noam Y. Tenne <[email protected]> wrote:
> Have you tried providing curl the "-v" parameter?
>
>
> On Thu, Oct 27, 2011 at 5:19 PM, Nicky Ramone <[email protected]> wrote:
>
>> Noam, the solution you proposed for providing checksums worked fine, and
>> that's all I needed.
>> What it's a bit confusing to me is the API documentation for that
>> functionality:
>>
>> http://wiki.jfrog.org/confluence/display/RTF/Artifactory's+REST+API#Artifactory%27sRESTAPI-DeployArtifact
>>
>> I needed to provide the checksums for consistency and so that Artifactory
>> marks them as verified. So, I thought i could use that json code to provide
>> the checksums.
>>
>> <http://wiki.jfrog.org/confluence/display/RTF/Artifactory's+REST+API#Artifactory%27sRESTAPI-DeployArtifact>I
>> assume that the json code shown there should be part of the response, but I
>> have never seen it. Also, maybe the doc should mention "Sample response"
>> instead of "Sample usage".
>>
>> Thanks again.
>> Regards.
>>
>>
>> On Thu, Oct 27, 2011 at 11:07 AM, Noam Y. Tenne <[email protected]> wrote:
>>
>>> It can't be done.
>>> Can you please describe your use case for this functionality? We may
>>> implement this in a future release if we can have a better understanding for
>>> the need of this.
>>>
>>>
>>> On Thu, Oct 27, 2011 at 3:31 PM, Nicky Ramone <[email protected]> wrote:
>>>
>>>> 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
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>
>
------------------------------------------------------------------------------
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