Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
@sarora, does the test case work in studio? Can you provides please more information about product environment?
Regards
Shong
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