Hi,
we execute Windows batch command and we use xcopy to copy web.config file"
set webconfig=C:\Program Files (x86)\Jenkins\customWorkspace\Staging\Configs\Sky24SPA\web.config
@REM Get proper config
xcopy “%webconfig%” “%backendBuildDir%” /y
but when the file doesn’t exist we want build to be failed. Normallny withoud /c parameter xcopy throws error code , but Jenkins doesn’t use this error and goes furher with the build.
After file doesn’t exist we want build to end.
Could you help?