Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm using MetaServlet to add tasks in Tac, but I'm getting the message 200|| {"error":"No value present","returnCode":1}, this is the Json I'm using. someone managed to use MetaServlet via API with 'actionName': 'associatePreGeneratedJob'
{
'actionName': 'associatePreGeneratedJob',
'active': true,
'artifactoryArtifactId': 'test',
'artifactoryGroupId': 'org.example',
'artifactoryJobVersionSuffix': '',
'artifactoryRepository': 'releases',
'artifactoryVersion': '0.11.0',
'authPass': 'admin',
'authUser': 'admin@company.com',
'contextName': 'PRD',
'description': 'task1',
'executionServerName': 'serv1',
'filePath': ' ',
'importType': 'Nexus',
'logLevel': 'Info',
'nexusArtifactId': 'test',
'nexusGroupId': 'org.example',
'nexusJobVersionSuffix': '',
'nexusRepository': 'releases',
'nexusVersion': '0.11.0' ,
'onUnknownStateJob': 'WAIT',
'pauseOnError': false,
'runAsUser': 'OS_User',
'taskName': 'task1',
'taskType': 'ARTIFACT_TASK',
'timeout': 3600
}
Hi
I think 'filePath' parameter can't be empty, the value of 'taskType' should be 'Artifact', please refer to the MetaServlet commands documentation and modify the value of the corresponding parameter.
Regards
Shong
Great, thanks for your feedback!