Continuous Integration

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW & Jenkins Batch File Build Process - Getting Started

This document is meant as a starting guide to using the batch file process described in my NI Week presentation, Continuous Integration with Jenkins and LabVIEW available here.

I created this document as I was setting up a new Jenkins system so it should have everything but if something seems vague or missing please let me know and I'll address it.

Message 1 of 12
(16,850 Views)

Autobuild.csv file has to be called in which location of Jenkins or folder

Senthil Prakash S
Certified LabVIEW Associate Developer
0 Kudos
Message 2 of 12
(14,713 Views)

The build.bat file expects Autobuild.csv to be at the root of your SCC repo. Examples of this can be found in our GitHub repo:

https://github.com/NIVeriStandAdd-Ons/J1939-Custom-Device

https://github.com/NIVeriStandAdd-Ons/Engine-Simulation-Toolkit-Custom-Device

https://github.com/NIVeriStandAdd-Ons/Scan-Engine-Custom-Device

You'll notice that in each of the above repos, there is an Autobuild.csv file in the root of the repo that contains the commands to be executed. Abstracting the build process to the csv file in the repo is what makes this process powerful. Let me know if that doesn't answer your question.

0 Kudos
Message 3 of 12
(14,714 Views)

I am using svn can I do without github

Senthil Prakash S
Certified LabVIEW Associate Developer
0 Kudos
Message 4 of 12
(14,714 Views)

Absolutely, you can use any SCM that Jenkins supports (SVN being among them) and I've used SVN for several of my projects. The github repos were meant purely as an example of repos that we build on our Jenkins server, and what their csv files look like.

If you have more questions about setting up a system, go ahead and start a discussion thread in this group. That way we can keep this section as general comments/questions on the getting started doc.

0 Kudos
Message 5 of 12
(14,714 Views)

May u explain setting up with SVN in a local folder to get the things and Autobuild.csv settings

Senthil Prakash S
Certified LabVIEW Associate Developer
0 Kudos
Message 6 of 12
(14,715 Views)

Setting up Jenkins with SVN is the same process as any other SCM. If you're using the latest Jenkins, I believe it comes with SVN, otherwise you'd download the subversion plug-in using the process I describe in the getting started guide. If it installed, you'll see Subversion as an option in your SCM section of the Jenkins job and you can configure it appropriately:

Capture.png

As for the Autobuild.csv settings, it depends on what you want to do, I recommend re-reading the Autobuild.csv section of the getting started guide. If you have more questions, let's move this to a general discussion thread here. If you haven't already, I'd also recommend you do some reading on the Jenkins page to better familiarize yourself with Jenkins. Hope this helps!

0 Kudos
Message 7 of 12
(14,715 Views)

New Bitmap Image.png

Senthil Prakash S
Certified LabVIEW Associate Developer
0 Kudos
Message 8 of 12
(14,715 Views)

See my response here.

0 Kudos
Message 9 of 12
(14,715 Views)

unfortunately I cannot download the doc. Something is broken. Can anybody provide the latest getting started guide of Ryan? I currently stuck with the port 8080

0 Kudos
Message 10 of 12
(14,710 Views)