I have called the artifactoryPublish task for uploading my custom WAR package and it is throwing the checksum error. I have also provided the code below and could you please met me know your valuable suggestions.
HTTP Status 404 - Checksum deploy failed. No existing file with SHA1: d921e9cc842c3b5b0341fcf84825a653b877e459
type Status report
message Checksum deploy failed. No existing file with SHA1: d921e9cc842c3b5b0341fcf84825a653b877e459
description The requested resource (Checksum deploy failed. No existing file with SHA1: d921e9cc842c3b5b0341fcf84825a653b877e459) is not available.
Apache Tomcat/6.0.32
Failed while reading the response from: PUT http://artifactory.homedepot.com/libs-release-local/com/homedepot/sa/pt/pos/SelfServiceWebApp/2016.064.001/SelfServiceWebApp-2016.064.001.war;build.name=SelfServiceWebApp;build.timestamp=1457110079596;build.number=1457110080672 HTTP/1.1
org.codehaus.jackson.JsonParseException: Unexpected character (’<’ (code 60)): expected a valid value (number, String, array, object, ‘true’, ‘false’ or ‘null’)
at [Source: java.io.StringReader@9d744; line: 1, column: 2]
at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)
at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)
at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2770)
at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2691)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1286)
at org.codehaus.jackson.JsonParser.readValueAs(JsonParser.java:1337)
at org.jfrog.build.client.ArtifactoryHttpClient.execute(ArtifactoryHttpClient.java:209)
My issue is similar to yours. I am not sure how I am supposed to configure artifactoryPublish so that I can use the ‘groupId’ in ‘publications’. When I leave the ‘groupId’ undefined, then in my case the jar and POM are deployed as I expect. If I identify the groupId (similar to org.mycompany.division.name) then it I receive the following error: “[DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Failed checksum deploy of checksum ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’ with statusCode: 409”.
If you removed the groupId in the publications section what would happen? Being a newbie I believe that I am doing something wrong. This may not get you further but maybe it will.