command line build step: .wsh file won't run; wcript.exe runs forever
i have a Windows Script Host file which runs from the command line when logged into the TC build server.
I tried to set up a "Custom Script" command line build step to run this......
run: Custom Script:
script: build_db.wsf /run /rebuild
The problem here, is that TC reports success, but the script never actually runs.
I got it to run by changing the build script to 'Executable with parameters', using 'wscript.exe' as the executable, with the script invocation as the arguments....
run: Executable with parameters
command executable: wscript.exe
command parameters: build_db.wsf /run /rebuild
Although the same invocation will run to completion when run manually on the build server, when run through TC, wscript.exe runs forever.
This seems to be a problem with v10; this works on v9 the 'custom script' version just works.
Please sign in to leave a comment.
Hello David,
Have you tried to run the same build script on the TeamCity agent (not server) under the same user that the agent is running under? Does it run successfully? Please use the following guidelines to investigate the issue.