05-07-2020 11:45 AM
Hello,
I am trying to call my test sequence file through a Jenkins pipeline. I have written following command in my Jenkins pipeline
dir('C:\\TestStandPath\\Bin'){
bat label: '', script: 'SeqEdit.exe /runEntryPoint "Singe Pass" "C:\\SequenceFilePath\\SeqFile.seq" /quit'
}
This hangs the Jenkins pipeline execution in running above command.
I have tried running above command through through command line then it works. It opens the TestStand and executes the SeqFile.seq
I have referred Getting Started with TestStand with Jenkins page.
Any suggestions..
05-07-2020 01:18 PM
Did you follow the steps in that getting started page to set the DCOM settings for TSAutoMgr and run the Jenkins service as a user?
05-07-2020 10:38 PM
Hello,
Thanks for the response yes I did all the steps mentioned on the page
05-07-2020 10:40 PM
The test sequence executes with TestExec command.
I replaced the test SeqEdit.exe with TestExec.exe and ran the SeqFile.seq and it worked.
06-06-2020 11:52 AM
I'm facing exactly same issue. I can run my batch file in cmd prompt without any issues. TestStand SeqEditor opens, runs the sequence and closes. But when I run it in Jenkins pipeline, then the same batch file hangs.
I tried to run with TestExec.exe too. But the problem persists. TestExec.exe runs perfectly in cmd prompt, but hangs in Jenkins pipeline.
BTW, where is your TestExec.exe is located? Is it under TestStand Bin directory? I find it in UserInterfaces directory in my PC (C:\Program Files (x86)\National Instruments\TestStand 2017\UserInterfaces\Simple\LabVIEW\Source Code\TestExec.exe)
06-08-2020 01:49 AM
Found a solution to this. Running Jenkins in CLI gets access to TestStand without any issues. Looks like there is some issues to run TestStand from windows service (Jenkins by default runs as windows service).
java -jar jenkins.war --httpPort=8091
jenkins.war is located under jenkins installation directory. In my case, I ran this command from C:\Jenkins\
A new instance of jenkins starts in the local port 8091 as I sent in args. http://localhost:8091/