Run batch file as administrator on Jenkins?

后端 未结 4 1545
执笔经年
执笔经年 2021-02-07 09:57

We\'re using Jenkins on Win8 x64 to build (msbuild), package (cspack), run (csrun) and test (nunit) an azure cloud services project. The Azure cloud service emulators need to ru

4条回答
  •  心在旅途
    2021-02-07 10:47

    Our solution was to run the Jenkins' service as a separate local admin user. After installing Jenkins, Start => 'services' => Scroll to the Jenkins service => right click => properties => "log on" => "this account" => specify a local admin account.

    Hopefully in newer Jenkins' builds it can work as the standard NETWORK SERVICE but for some reason it didn't with our box.

提交回复
热议问题