05-14-2016 10:12 PM
12-04-2016 09:40 PM - edited 12-04-2016 09:47 PM
Hi Ryan,
I'm just getting started with Jenkins but have been using LabVIEW for many years. I'm running into an issue that I just can't figure out. I am trying to have Jenkins do a simple build.
What's happening is the following:
My autobuild.csv file contains only one line - the build spec.
The thing is, if I run the build.bat file from the command prompt, LabVIEW opens, the whole build completes successfully with errorlevel = 0. For it to work, I had to replace the Jenkins variables (like buildnumber) with a constant.
The error logs are showing me nothing... any ideas of where to look or possibly some troubleshooting techniques?
Also... thought I read somewhere that the pro version of VIPM is required, is this true? I currently only have access to Community edition.
Thanks!
Charlie
12-16-2016 10:54 AM
It seems i'm having the same problem as asuwish4. I tried to launch labview in a single line batchscript from jenkins but that also doens't work.
12-17-2016 08:22 PM
There is some info here:
https://wiki.jenkins-ci.org/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins
12-19-2016 06:08 AM
Found the problem. After debugging the build.vi I noticed the project could not be saved because it is readlonly because we are using SVN.
07-19-2017 11:02 AM - edited 07-24-2017 10:00 AM
Help I'm stumped!
Edit 7/24/2017
Do NOT help, I'm NO LONGER stumped!
I added two vi's and a ctl to the https://github.com/NIVeriStandAdd-Ons/Jenkins-Autobuild.
I added them to the "include project.lvproj"
committed all to my Git branch
the problem? if a build a 2012 build, then build a 2015 build, and try to rebuild the 2012, it fails. My two new vi's and ctl have changed LabVIEW version to 2015, so it's no wonder that trying to start another 2012 build fails.
Of course I could work around this by having a revert of the \Autobuild directory happen automatically, but I'd like to fix it the proper way and get these files to be untouched like the others in the "include project.lvproj". Any ideas how to do that?
Edit 7/24/2017
I found out that the difference between my new VI's and CTL and the others in the project is that the others in the project were set to "separate compiled code from source file" and mine were not. Once I did this, no more errors building older version LabVIEW after newer versions!
BTW, if anyone is interested the two new vi's determine the build specification output locations so that the artifacts/derived objects/build output can be properly moved by the copy vi. By default its only expecting them to be in \built. This way I can use this batch process on any .lvproj we have without modifying the build specs.
04-05-2018 02:45 AM
Hi Ryan,
Two months back, we started LabVIEW Jenkins CI automation. Now currently we running into an issue.
What happening is the the following:
1. I trigger the build and the source update via AccuRev(No problem).
2.Build.bat executes, it is hanging there only until we abort. But it is working fine in the local server.
Yesterday we changed the Jenkins user account, after that it worked fine for two builds and then again the same above issue came back, it is hanging in Jenkins, but it working in the windows server.
I observed that, when I build locally in the server in the the task manager LabVIEW use 25% CPU and 10 lakh kb memory, but when I trigger throw Jenkins at one point CPU % went to 0 and memory is hanging 1 ***** digit KB.
It would be great, if you can help on this. we get stucked her. Please help us.
09-01-2019 11:29 AM
Hi asuwish4,
I am having the exact problem that you were having but a few years in the future. I am not only having this problem with the package as discussed in this thread but also when trying to use the Command Line Interface. It seems that it may be a problem with where we are trying to launch LabVIEW as outlined in the link you have provided as well as:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000001De1JSAS&l=en-GB
I wondered whether you found a specific solution to this?
Thanks,
Matt