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

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -