Deploy code in another directory - Jenkins -
i'm using jenkins deploy code , ci. don't have issues pulling code jenkins default workspace want deploy code specific sub directory apache run. location /var/wwww/.
any command run in folder /var/www needs sudo access root own directoy.
how can set jenkins run sudo permissions?
you can add jenkins user (see systeminfo property user.name) /etc/sudoers file without password:
your_user localhost = nopassword:
but unsecure. prefer log in user , deploy files using publish on ssh plugin
Comments
Post a Comment