I'm working on developing a build pipeline for LabVIEW projects and have reached the point where I can build a LabVIEW project from a batch file or windows cmd. The process is pretty simple. I'm calling some LabVIEW code from the LabVIEW engine that will build the project. The process works from within a batch script but the second I put the contents of the batch file into the jenkins build step it fails with the message.
'--' is not recognized as an internal or external command,
operable program or batch file.
The contents of the batch script are as follows:
@echo off
%LabVIEW17% %pBUILD% -- "<path to my project>.lvproj"
Where %LabVIEW17% is the path to the LabVIEW.exe and %pBUILD% is the path to the LabVIEW code that builds projects. The format is based on some information I found here: http://www.ni.com/example/30051/en/
Why would '--' fail from Jenkins and not from cmd or a batch file? What is the purpose of the -- input?