bash - Run Jenkins' Cygwin script as user -


i have jenkins running on windows, , have build works fine under cygwin bash cygwin terminal, want automate it. however, using script:

#!c:\cygwin\bin\bash.exe whoami make 

the system reports me nt authority\system, not ken when using interactive shell. there easy way persuade jenkins or cygwin run me?

most running jenkins default installation. have 2 options. first mentioned in comment. change "service account" same yours.

second option derived best practices. run jenkins master on system backup etc. configure slave node account credentials. change project configuration build on specific node.

(it possible run slave , master on same machine different credentials - in case want try out things)


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -