Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Metaservlet associatePreGeneratedJob call fails to create task from Nexus artifact

I am using MetaservletCaller to create a task from a pregenerated job.
 
Here is the request:
 -> Json parameters:
{
  "actionName": "associatePreGeneratedJob",
  "active": true,
  "authPass": "XXX",
  "authUser": "YYY",
  "contextName": "CI",
  "description": " description",
  "executionServerName": "serv1",
  "importType": "Nexus",
  "logLevel": "Info",
  "nexusArtifactId": "testjob_LM_Processing",
  "nexusGroupId": "org.talend.job.my_group",
  "nexusRepository": "snapshots",
  "nexusVersion": "0.1.005933_24f0b469-SNAPSHOT",
  "onUnknownStateJob": "WAIT",
  "pauseOnError": false,
  "taskName": "task123",
  "taskType": "Normal"
}
 
Here is the response:
{
  "error": "config.scheduler.archiva.url.inavailable",
  "returnCode": 181
}
 
The path of the job in the Nexus repository 'snapshots' is:
/org/talend/job/ my_group/testjob_LM_Processing/0.1.005933_24f0b469-SNAPSHOT/testjob_LM_Processing-0.1.005933_24f0b469-20180515.032432-1.zip
 
So, what does the error mean?
Do I need to specify 'nexusJobVersionSuffix' too? What do I put in this?
Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hello,

Could you please indicate on which talend build version you got this issue?

We have a known jira issue about creating Artifact Task with Metaservlet API.

Best regards

Sabrina

Anonymous
Not applicable
Author

Also per the documentation you are missing the parameter nexusJobVersionSuffix .

"nexusJobVersionSuffix": "1.0.0-20170516.043751-1",

 

ravi999
Contributor III
Contributor III

Hi, 

 

I have the same issue. Is this issue resolved?

Anonymous
Not applicable
Author

This should work and I made it work without the suffix like previously stated with this command format, you will have to update the json string to include your parameters:

{"authUser":"user@company.com","authPass":"********","targetConductor":"JOBCONDUCTOR","taskName":"taskname","description":"description","active":true,"nexusRepository":"nexusRepo","nexusGroupId":"org.talend.job.test","nexusArtifactId":"testjob","nexusVersion":"3.0.241-446","onUnknownStateJob":"WAIT","contextName":"Default","logLevel":"Error","execStatisticsEnabled":"true","pauseOnError":"false","timeout":"0","executionServerName":"serv1","runAsUser":"svc.talend","actionName":"associatePreGeneratedJob","importType":"Nexus"}