On Wednesday, December 22, 2021 at 3:28:20 PM UTC-7 Emanuel wrote:
> I install Jenkins in Ubuntu 20.04 and create my first task in my > localhost, to clone a test repository en my localhost. > > [image: Captura de pantalla de 2021-12-22 17-55-20.png] > > when i try to build i see this error "stderr: /home/emanuel/git-test/.git: > permission denied" > > > Running as SYSTEM > Building in workspace /home/emanuel/git-test > The recommended git tool is: NONE > No credentials specified > Cloning the remote Git repository > Cloning repository https://github.com/pilchita/test-jenkins.git > > git init /home/emanuel/git-test # timeout=10 > ERROR: Error cloning remote repo 'origin' > hudson.plugins.git.GitException: Could not init /home/emanuel/git-test > > Caused by: hudson.plugins.git.GitException: Command "git init > /home/emanuel/git-test" returned status code 1: > stdout: > stderr: /home/emanuel/git-test/.git: Permiso denegado > > Command line git attempted to perform the command "git init /home/emanuel/git-test" and was not allowed to write to that location as the user that is running the Jenkins controller process. Jenkins runs as the user 'jenkins' when installed with the package manager on Ubuntu and Debian. The user 'jenkins' does not have permission to write to '/home/emanuel'. Let Jenkins control its own directories by using the default workspace assigned to Jenkins. Don't assign it to write to /home/emanuel when its default is writing to a different location. Mark Waite -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4568f64b-c439-49eb-9efe-bccc247c55e7n%40googlegroups.com.
