Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
With Jenkins my build job (generate sources) successfully downloads a BitBucket repository, however eventually the job gives the following error when invoking CI Builder:
[INFO] exception : org.talend.commandline.client.command.CommandStatusWrapException: org.talend.commons.exception.LoginException: Missing the reference project for "SANDBOX", please make sure the reference projects must be existed in same workspace too.
What's the proper way to handle reference projects in my Jenkin's build job?
Build
Talend 6.3.1
Jenkins 2.60.2
Maven 3.5.0
Nexus 2.11.3
Error stack
Tested this, i can reproduce it and fix it. The issue here is in fact that when you have the project defined like below:
http://localhost:8181/git/r/MAIN.git
http://localhost:8181/git/r/REFERENCE.git
Even if you defined the two URL in your buildSource definition, see the screenshot attached. With that only one project
is checked, I had to manually copy paste the second project missing. To avoid this issue related to
jenkins i had to use one single repository for the two projects:
http://localhost:8181/git/r/tac631.git
Tested this, i can reproduce it and fix it. The issue here is in fact that when you have the project defined like below:
http://localhost:8181/git/r/MAIN.git
http://localhost:8181/git/r/REFERENCE.git
Even if you defined the two URL in your buildSource definition, see the screenshot attached. With that only one project
is checked, I had to manually copy paste the second project missing. To avoid this issue related to
jenkins i had to use one single repository for the two projects:
http://localhost:8181/git/r/tac631.git
Submitted a support ticket and they gave some great advice.
Created By: Evan Teitelbaum (8/8/2017 11:27 AM)
Hello Al,
Jenkins can only checkout one project at a time and this is why you are getting this issue. The solution here is to checkout the project so that under the workspace folder you have the project folder for the main and the reference project. Or you can do a git checkout anywhere else and then copy the project folder over into the CI's cmdline workspace folder. Then after you build again after this step please let us know if you still have this issue.
I did a checkout in another directory and copied it to the other project. You have to make sure you copy the reference project root to match the original talend project, the parent folder of all the talend-generated folders. I ran my Jenkins job and it built successfully.
I will now attempt to automate this into a pre-build script.
Successfully created a batch script that is called as a pre-build step that will