1

I'm having some issues about uploading a spec in artifactory. When i build, I have this error:

java.lang.RuntimeException: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 91; received: 0

I tried to solve this problems doing what similar questions' answers here told to do, but it didn't work.

皇冠hg0088代理网址the part of the code is:

皇冠hg0088代理网址def server = Artifactory.newServer url: "${UrlRepoAppDes}", credentialsId: "${ARTIFACTORY_CREDENTIALS}" println(ARTIFACTORY_CREDENTIALS)

def uploadSpec = "{\"files\": [{\"pattern\": \"*.rpm\", \"target\": \"${repositoryName}/${artifactId}/\"}]}"

皇冠hg0088代理网址println(uploadSpec)

皇冠hg0088代理网址server.upload(uploadSpec)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy皇冠hg0088代理网址

Browse other questions tagged or ask your own question.