Aplicação em Jenkins

09/11/2016

0

Boa noite nobres. Mais uma vez, recorro ao fórum para me ajudar quanto a assuntos poucos conhecidos por minha pessoa.
Tenho que subir no Jenkins uma aplicação Maven do Github. Entretanto diversos erros ocorrem.
Segue abaixo o log:

Iniciado pelo usuário root
Construindo no workspace C:\\Users\\Kelvin\\.jenkins\\workspace\\MarcondesMaven
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url https://github.com/KelvinEger/topicos.git # timeout=10
Fetching upstream changes from https://github.com/KelvinEger/topicos.git
 > git.exe --version # timeout=10
 > git.exe fetch --tags --progress https://github.com/KelvinEger/topicos.git +refs/heads/*:refs/remotes/origin/*
 > git.exe rev-parse "refs/remotes/origin/master^" # timeout=10
 > git.exe rev-parse "refs/remotes/origin/origin/master^" # timeout=10
Checking out Revision 5cc5861534ef2c579651afa30d2e4d4d6e6f12c9 (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 5cc5861534ef2c579651afa30d2e4d4d6e6f12c9
 > git.exe rev-list 5cc5861534ef2c579651afa30d2e4d4d6e6f12c9 # timeout=10
Parsing POMs
Established TCP socket on 56960
[MarcondesMaven] $ java -cp C:\\Users\\Kelvin\\.jenkins\\plugins\\maven-plugin\\WEB-INF\\lib\\maven33-agent-1.8.1.jar;C:\\Users\\Kelvin\\.jenkins\\tools\\hudson.tasks.Maven_MavenInstallation\\C_apache-maven-3.3.9\\boot\\plexus-classworlds-2.5.2.jar;C:\\Users\\Kelvin\\.jenkins\\tools\\hudson.tasks.Maven_MavenInstallation\\C_apache-maven-3.3.9/conf/logging jenkins.maven3.agent.Maven33Main C:\\Users\\Kelvin\\.jenkins\\tools\\hudson.tasks.Maven_MavenInstallation\\C_apache-maven-3.3.9 C:\\Users\\Kelvin\\Desktop\\Marcondes\\apache-tomcat-8.5.6\\webapps\\jenkins\\WEB-INF\\lib\\remoting-2.62.jar C:\\Users\\Kelvin\\.jenkins\\plugins\\maven-plugin\\WEB-INF\\lib\\maven33-interceptor-1.8.1.jar C:\\Users\\Kelvin\\.jenkins\\plugins\\maven-plugin\\WEB-INF\\lib\\maven3-interceptor-commons-1.8.1.jar 56960
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f C:\\Users\\Kelvin\\.jenkins\\workspace\\MarcondesMaven\\pom.xml clean package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building topicos 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ topicos ---
[INFO] Deleting C:\\Users\\Kelvin\\.jenkins\\workspace\\MarcondesMaven\\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ topicos ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ topicos ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to C:\\Users\\Kelvin\\.jenkins\\workspace\\MarcondesMaven\\target\\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.922 s
[INFO] Finished at: 2016-11-09T22:08:03-02:00
[INFO] Final Memory: 14M/35M
[INFO] ------------------------------------------------------------------------
Aguardando Jenkins terminar de coletar dados
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project topicos: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[JENKINS] Archiving C:\\Users\\Kelvin\\.jenkins\\workspace\\MarcondesMaven\\pom.xml to br.edu.unidavi/topicos/1.0-SNAPSHOT/topicos-1.0-SNAPSHOT.pom
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
channel stopped
Finished: FAILURE
Kelvin Eger

Kelvin Eger

Responder

Post mais votado

10/11/2016

Problema resolvido.
Eram as variávies de ambiente do Windows que estavam erradas. Eu estava apontando pro JRE, aí troquei pro JDK e funcionou.

Kelvin Eger

Kelvin Eger
Responder

Mais Posts

17/11/2017

José Vasconcelos

Boa tarde amigos.

Instalei o jenkins tudo funciona perfeito.Mas não entendo como minha aplicação é atualizada do repositório da máquina onde esta rodando o Jenkis para os hosts onde estão meus clientes.
Preciso instalar um agente em cada host ?
Alguma dica ?
Responder

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar