Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sarora1
Creator
Creator

Error when running test case on Jenkins.

I am getting this error when I am build the source code on Jenkins. The build is failing when it tried to run the test case. From the error message it looks like Test case is not able to refer the sub job that is being called from the main job. Any thoughts?

talend_common is the project

job_pipeline_master is the main job

job_ingestion_master is the sub job that gets called from the job_pipeline_master

tc_pipeline_master is the name of the test case

From Jenkins log:

11:08:55.148 [main] ERROR talend_common.job_pipeline_master_0_1.tc_pipeline_master_0_1.tc_pipeline_masterTest - tRunJob_1 - Child job returns 1. It doesn't terminate normally.

Error: Could not find or load main class talend_common.job_ingestion_master_0_1.job_Ingestion_Master

Child job returns 1. It doesn't terminate normally.

Error: Could not find or load main class talend_common.job_ingestion_master_0_1.job_Ingestion_Master

11:08:55.269 [main] ERROR talend_common.job_pipeline_master_0_1.tc_pipeline_master_0_1.tc_pipeline_masterTest - tRunJob_1 - Child job returns 1. It doesn't terminate normally.

Error: Could not find or load main class talend_common.job_ingestion_master_0_1.job_Ingestion_Master

Child job returns 1. It doesn't terminate normally.

Error: Could not find or load main class talend_common.job_ingestion_master_0_1.job_Ingestion_Master

Labels (2)
2 Replies
Anonymous
Not applicable

@sarora, does the test case work in studio? Can you provides please more information about product environment?

 

Regards

Shong

sarora1
Creator
Creator
Author

Yes, Test case works fine in Studio.

CICD Env - Jenkins, Maven, Nexus, GitHub

Goals and Options (jenkins pipeline config) - clean package -Pcloud-publisher -fae -pl jobs/process/job_pipeline_master_0.1 -am