Differences in Jenkins build?

Asked

Viewed 156 times

0

I set up Jenkins to "build" a project from a git repository, I’m using Maven:

Warning: JAVA_HOME Environment variable is not set. Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08:57:37-03:00) Maven home: /opt/Maven Java version: 1.7.0_95, vendor: Oracle
Corporation Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre
Default locale: en_US, Platform encoding: UTF-8 OS name: "linux", version: "2.6.32-573.el6.x86_64", Arch: "amd64", family: "Unix"

I tried to run "setando" also to JAVA_HOME:

[root@centos64 ~]# mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08:57:37-03:00)
Maven home: /opt/maven
Java version: 1.7.0_95, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: "unix"

When I run the build by Jenkins the build wheel is incomplete:

enter image description here

When I run through the terminal it happens correctly:

enter image description here

In both cases the build is successfully completed.

I don’t know exactly what’s going on.

  • Did you set the environment variable JAVA_HOME on linux? From what I understood you "set" the JAVA_HOME in the configuration of Maven

  • I ran export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre then export PATH=$PATH:$JAVA_HOME/bin

1 answer

0


I was making two mistakes:

1 - I wasn’t specifying the correct branch in Jenkins

2 - For some reason, that I do not know exactly why, the pull was not running, I deleted my Workspace and recreated again, it worked.

Thank you all !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.