1

http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifact将 REST API 描述为:

PUT /libs-release-local/my/jar/1.0/jar-1.0.jar
{
"uri": "http://localhost:8080/artifactory/libs-release-local/my/jar/1.0/jar-1.0.jar",
"downloadUri": "http://localhost:8080/artifactory/libs-release-local/my/jar/1.0/jar-1.0.jar",
"repo": "libs-release-local",
"path": "/my/jar/1.0/jar-1.0.jar",
"created": ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ),
"createdBy": "userY",
"size": "1024", //bytes
"mimeType": "application/java-archive",
"checksums":
{
        "md5" : string,
        "sha1" : string
    },
"originalChecksums":{
        "md5" : string,
        "sha1" : string
    }
}

使用 Groovy 的 HttpBuilder 时如何提供文件的内容?

4

1 回答 1

0

如果您需要通过 Java(或 Groovy)与 Artifactory 进行交互,我建议使用Artifactory Java 客户端

如果它遗漏了您需要的一些功能,请告诉我们,我们很乐意实施它们。

如果您仍然喜欢自己做,请查看来源,这正是我们所做的。

于 2013-10-09T18:05:04.480 回答