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

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

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -