The year wasn't being set reliably by version.cmd.
if "%BUILD_NUMBER%" == "" set BUILD_NUMBER=0\r
\r
@rem Copyright year provided by Jenkins.\r
-if "%BUILD_ID%" == "" (set year=) else (\r
- set md=%BUILD_ID:*-=%\r
- call set year=%%BUILD_ID:%md%=%%\r
- set year=%year:~0,-1%\r
-)\r
+set md=%BUILD_ID:*-=%\r
+call set year=%%BUILD_ID:%md%=%%\r
+set year=%year:~0,-1%\r
+if "%BUILD_ID%" == "" set year=\r
\r
@rem Create version.h.\r
@echo>version.h.new #define NSSM_VERSION _T("%description%")\r