Unable to read from Jfrog Artifactory

277 Views Asked by At

I am attempting to connect to Artifactory to read a Java zip file with the admin user. The call is made through Talend Restful API interface (described below).

Expected result: To read the file stored in Artifact repository and copy it to a server To see a record of the access in the access.log file

Actual: There is a line in the request.log with the HTTP code 200 , but there is nothing recorded in the access.log. How do I find out what the issue is?

About Talend Restful API: Talend has a way to call its Java based jobs through its Talend Administrator Console (TAC), a web based interface by creating an object called a task. The task refers to a Java zipped file stored in Artifactory, connects to Artifactory and copies it to the machine where TAC runs and executes it. When this action is done through TAC itself, it works. But when it is called through Talend Restful API, we get the error "{"error":"nexus.error.wrongstatus","returnCode":181}"

The Restful call (calling from TAC server): ./MetaServletCaller.sh --tac-url http://... -json '{"actionName": "associatePreGeneratedJob", "active": true, "artifactoryArtifactId": "job_showMsg2", "artifactoryGroupId": "test.job", "artifactoryRepository": "snapshot", "artifactoryVersion": "0.1.0", "authPass": "xxx", "authUser": "xxx", "contextName": "Default", "description": "test_jb1 description", "executionServerName": "jbsrv", "importType": "Artifactory", "logLevel": "Info", "onUnknownStateJob": "WAIT", "pauseOnError": false, "taskName": "job_test", "taskType": "Artifact","targetConductor":"JOBCONDUCTOR", "timeout": 3600}'

0

There are 0 best solutions below