Setting environment variables in Jenkins with bat file?

I currently have a batch file that sets all the environment variables needed before starting the build process.

To set env variables, you must use the same bit.

I tried to use EnvInject Plugin, had no success.

Also tried "Run Windows Batch Command" before running msbuild. for example run mybat.bat - this does not seem to work.

How can I integrate the same bat file to set variables?

+4
source share
1 answer

Jenkins , : Jenkins

MSBuild, , . MSBuild , " Windows", bat , MSBuild

MSBuild EnvInject-. , , EnvInject-. , .bat .

+5

Source: https://habr.com/ru/post/1531378/


All Articles