By the way, you might be interested to learn about and use the 'Pipeline
Maven Plugin'.
Cheers
Le mar. 7 août 2018 à 17:50, suny nazar a écrit :
> Issue is fixed , by providing tools configuration in Jenkins file.
>
> tools {
> maven 'JenkinsMaven'
> jdk 'JenkinsJDK'
> }
>
> On Tuesday, 7 Augus
Issue is fixed , by providing tools configuration in Jenkins file.
tools {
maven 'JenkinsMaven'
jdk 'JenkinsJDK'
}
On Tuesday, 7 August 2018 18:54:11 UTC+5:30, yossibr9876 wrote:
>
> Hi,
> make sure u have a jdk !!! (I think you have jre ) .
>
> On Tuesday, August 7, 2018 at 3:48:36 PM UTC+3,
Did n't get you , actually i have tried two options in Global tool
configuration.
1 Maven and JDK was given local paths.
2 Maven and JDK were set to be installed by Jenkins.
in both cases it did not work , when i am trying locally to run mvn compile
, it works. It also works with freestyle proj
Hi,
make sure u have a jdk !!! (I think you have jre ) .
On Tuesday, August 7, 2018 at 3:48:36 PM UTC+3, suny nazar wrote:
>
>
> i am getting below error when i am running maven goals via Jenkinsfile. I am
> not getting this issue when i am running freestyle project with maven goals.
>
>
> [ERROR
Is JAVA_HOME set to that for the user that Jenkins is running as?
On Tue, Aug 7, 2018 at 5:48 AM suny nazar wrote:
>
> i am getting below error when i am running maven goals via Jenkinsfile. I am
> not getting this issue when i am running freestyle project with maven goals.
>
>
> [ERROR] Failed
i am getting below error when i am running maven goals via Jenkinsfile. I am
not getting this issue when i am running freestyle project with maven goals.
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile)
on project server: Compilat