I am trying to create a pipeline which execute the application with some test scripts once it is built. If done through the CMD it opens the application run a test(AIImprovementsBucket1Test) and exit the application. I have tried this:
```
stage('test') {
steps{
script{
bat """
START "" "D:/project/Game/project.exe" SCRIPT=AIImprovementsBucket1Test SCRIPTREPORT=project_Test_Run_Testing.txt
"""
}
}
}
```
but then the pipeline just finishes as SUCCESS but it does not open the program. I have tried to take the command and put it inside a .bat file then invoke that file from the pipeline like this:
```
stage('test') {
steps{
bat ('call "C:/Users/User/Desktop/TestHarnessStuff/testHarness.bat"');
}
}
```
but I get the same result, pipeline finishes as success with it does not open the application. I have been going through some SO threads on how to run a .exe file but I just found windows exe runner plugin which cannot be used in declarative pipeline as far as I know. Is there any other way or workaround to do this?