Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
fatahzx
Contributor III
Contributor III

No Value Present when publish using metaservlet API associatePreGeneratedJob

I want to publish nexus job using metaservlet api. i read the documentation and fill the paramater like this:

{

 "actionName": "associatePreGeneratedJob",

 "active": true,

 "artifactoryArtifactId": "test",

 "artifactoryGroupId": "org.example",

 "artifactoryJobVersionSuffix": "0.2.0-20170516.043751-1",

 "artifactoryRepository": "release",

 "artifactoryVersion": "0.2.0-SNAPSHOT",

 "authPass": "xxxxxxxxxxxxxxxxxxxxxx",

 "authUser": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

 "contextName": "Default",

 "description": "task1's description",

 "executionServerName": "serv1",

 "filePath": "'/home/talend/generatedJob.zip'",

 "importType": "Nexus",

 "logLevel": "Info",

 "nexusArtifactId": "test",

 "nexusGroupId": "org.example",

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

 "nexusRepository": "snapshots",

 "nexusVersion": "0.1.0-SNAPSHOT",

 "onUnknownStateJob": "WAIT",

 "pauseOnError": false,

 "runAsUser": "OS_User",

 "taskName": "task1",

 "taskType": "Artifact",

 "timeout": 3600

}

but response from server like this:

{

   "error": "No value present",

   "returnCode": 1

}

fyi, i published job to nexus repository. how to deploy it into TAC?what's wrong with method using metaservlet API?

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

See the metaserverlt API command in the below document for deploying job in TAC.

https://help.talend.com/r/en-US/8.0/administration-center-metaservlet-api/metaservlet-commands

https://help.talend.com/r/en-US/8.0/administration-center-user-guide/parameters-and-actions-in-metaservlet

 

Thanks

View solution in original post

1 Reply
Anonymous
Not applicable

Hello,

See the metaserverlt API command in the below document for deploying job in TAC.

https://help.talend.com/r/en-US/8.0/administration-center-metaservlet-api/metaservlet-commands

https://help.talend.com/r/en-US/8.0/administration-center-user-guide/parameters-and-actions-in-metaservlet

 

Thanks