1
resposta

Problema ao efetuar o primeiro deploy - Acesso negado

Estou recebendo o log abaixo

Iniciado pelo usuário admin jenkins Construindo no workspace C:\Program Files (x86)\Jenkins\workspace\argentum-web Cloning the remote Git repository Cloning repository https://github.com/patymelo/argentum-web.git

C:\Users\patricia\git init C:\Program Files (x86)\Jenkins\workspace\argentum-web # timeout=10 ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\workspace\argentum-web at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:772) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:564) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1815) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Caused by: hudson.plugins.git.GitException: Error performing command: C:\Users\patricia\git init C:\Program Files (x86)\Jenkins\workspace\argentum-web at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2009) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1970) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1966) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1597) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:770) ... 12 more Caused by: java.io.IOException: Cannot run program "C:\Users\patricia\git" (in directory "C:\Program Files (x86)\Jenkins\workspace\argentum-web"): CreateProcess error=5, Acesso negado at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.(Proc.java:249) at hudson.Proc$LocalProc.(Proc.java:218) at hudson.Launcher$LocalLauncher.launch(Launcher.java:929) at hudson.Launcher$ProcStarter.start(Launcher.java:449) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1998) ... 16 more Caused by: java.io.IOException: CreateProcess error=5, Acesso negado at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 22 more ERROR: Error cloning remote repo 'origin' Finished: FAILURE

1 resposta

Olá, Patricia.

Se você olhar a mensagem de erro, o último Caused by, verá o seguinte:

Caused by: java.io.IOException: CreateProcess error=5, Acesso negado

Pelo jeito, o Jenkins não tem permissão de escrita na pastaC:\Program Files (x86)\Jenkins\workspace\argentum-web