Hi all, We have encountered an error while running a Jenkins job to deploy packages to our Artifactory repositories. Artifactory runs with *fullDb* option and uses an Oracle db instance to store binaries. Jenkins job successfully builds and deploys artifacts but in deploying build info step, it throws few exceptions which we are not able to get rid of at all.
Jenkins log says: /[INFO] Artifactory Build Info Recorder: Saving Build Info to 'C:\Program Files (x86)\Jenkins\...\target\build-info.json' [INFO] Artifactory Build Info Recorder: Deploying build info ... [INFO] Deploying build info to: http://.../artifactory/api/build [ERROR] Could not build the build-info object. java.io.IOException: Failed to send build info: HTTP response code: 500. HTTP response message: Internal Server Error at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:647 ..... ..... [ERROR] org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. ...... ...... [ERROR] Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: Error occurred while publishing Build Info to Artifactory. Could not publish build-info: Failed to send build info: HTTP response code: 500. HTTP response message: Internal Server Error -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: ..... ...../ Artifactory log has the following output generated during the job run: /2015-02-24 08:48:11,810 [http-bio-8082-exec-4] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:46) - Could not insert build org.jfrog.build.api.Build@3f70d18 org.artifactory.storage.StorageException: Could not insert build org.jfrog.build.api.Build@3f70d18 at org.artifactory.storage.db.build.service.BuildStoreServiceImpl.addBuild(BuildStoreServiceImpl.java:135) ~[artifactory-storage-db-3.4.2.jar:na] ...... ...... Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (ARTIFACTORY_DB.BUILDS_NAME_NUMBER_DATE_IDX) violated ...... ...... / Although we receive an ORA error regarding unique index violation, we are able to see the entries that are peculiar to that specific job inserted to *BUILDS* table as below: BUILD_ID BUILD_NAME BUILD_NUMBER BUILD_DATE CI_URL CREATED CREATED_BY 1642871 MobilSahaMobileBuild 35 1424416647931 http://.... 1424416720761 jenkins 1642988 MobilSahaMobileBuild 36 1424423876940 http://.... 1424423932198 jenkins 1643501 MobilSahaMobileBuild 37 1424433319046 http://.... 1424433376160 jenkins 1643920 MobilSahaMobileBuild 38 1424444144307 http://.... 1424444199339 jenkins 1643940 MobilSahaMobileBuild 39 1424446206119 http://.... 1424446265062 jenkins 1644004 MobilSahaMobileBuild 40 1424447465702 http://.... 1424447519837 jenkins 1644023 MobilSahaMobileBuild 41 1424673588240 http://.... 1424673665369 jenkins We are also able to see these build information using Artifactory UI without any issues as expected. We upgraded Jenkins Artifactory plugin from 2.2.1 to version 2.2.7 which indicated that this upgrade was required to deploy build info to Artifactory but nothing has changed after the upgrade. We still get failures when running the Jenkins job. We could not figure out how to sort this out. Any kind of help will be appreciated. Regards, Ozan -- View this message in context: http://forums.jfrog.org/Error-when-deploying-build-info-to-Artifactory-by-a-Jenkins-job-tp7580210.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
