Bom dia. Ao rodar o build do leilao depois de instalar o Maven, aparece o seguinte erro:
Started by user Adelmo Aparecido da Silva Running as SYSTEM Building in workspace /root/.jenkins/workspace/leilao-testes The recommended git tool is: NONE No credentials specified
git rev-parse --resolve-git-dir /root/.jenkins/workspace/leilao-testes/.git # timeout=10 Fetching changes from the remote Git repository git config remote.origin.url https://github.com/rcaneppele/leilao.git # timeout=10 Fetching upstream changes from https://github.com/rcaneppele/leilao.git git --version # timeout=10 git --version # 'git version 2.34.1' git fetch --tags --force --progress -- https://github.com/rcaneppele/leilao.git +refs/heads/:refs/remotes/origin/ # timeout=10 git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 56beab8d5544b28c9827b967061c730922903d4e (refs/remotes/origin/master) git config core.sparsecheckout # timeout=10 git checkout -f 56beab8d5544b28c9827b967061c730922903d4e # timeout=10 Commit message: "codigos da aula 4" First time build. Skipping changelog. [leilao-testes] $ mvn clean test FATAL: command execution failed java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) Caused: java.io.IOException: Cannot run program "mvn" (in directory "/root/.jenkins/workspace/leilao-testes"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at hudson.Proc$LocalProc.(Proc.java:254) at hudson.Proc$LocalProc.(Proc.java:223) at hudson.Launcher$LocalLauncher.launch(Launcher.java:997) at hudson.Launcher$ProcStarter.start(Launcher.java:509) at hudson.Launcher$ProcStarter.join(Launcher.java:520) at hudson.tasks.Maven.perform(Maven.java:369) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) at hudson.model.Run.execute(Run.java:1897) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Build step 'Invoke top-level Maven targets' marked build as failure Finished: FAILURE
Estou usando o Ubuntu no WSL e ja tenho o Maven está instalado: **root@NOT-TIS-INF21:/opt# mvn -version Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /opt/maven Java version: 11.0.16, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "5.10.16.3-microsoft-standard-wsl2", arch: "amd64", family: "unix" root@NOT-TIS-INF21:/opt#