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

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

Java Entity Manager - JSON reader was expecting a value but found 'db' -