Code execution from jenkin -github | Selenium Forum
toolslearning7 Posted on 07/07/2022

Hi Team,

I followed the same video of BDD jenkin- git hub execution

jenkin normal execution works for me but jenkin github execution fails and below is my error:


Please help me to fix this.

Console Output

Started by user manoj
Running as SYSTEM
Building in workspace C:\Users\spata\.jenkins\workspace\Github_Amazon
The recommended git tool is: NONE
using credential 1e7e83dd-7b00-4b26-ac6b-6817ee9aee5a
 > git.exe rev-parse --resolve-git-dir C:\Users\spata\.jenkins\workspace\Github_Amazon\.git # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url # timeout=10
Fetching upstream changes from
 > git.exe --version # timeout=10
 > git --version # 'git version'
using GIT_ASKPASS to set credentials 
 > git.exe fetch --tags --force --progress -- +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
Checking out Revision 5c6949eeb4db41173b26b1f36c0bb6ca69b379ac (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 5c6949eeb4db41173b26b1f36c0bb6ca69b379ac # timeout=10
Commit message: "ignore file added"
 > git.exe rev-list --no-walk 5c6949eeb4db41173b26b1f36c0bb6ca69b379ac # timeout=10
[Github_Amazon] $ cmd.exe /C "mvn -f C:\Users\spata\.jenkins\workspace\Github_Amazon\pom.xml test && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[WARNING] Some problems were encountered while building the effective model for com:Manoj_Assignment:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 82, column 12
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] ------------------------< com:Manoj_Assignment >------------------------
[INFO] Building Manoj_Assignment 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Manoj_Assignment ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\spata\.jenkins\workspace\Github_Amazon\src\main\resources
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Manoj_Assignment ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\Users\spata\.jenkins\workspace\Github_Amazon\target\classes
[INFO] -------------------------------------------------------------
[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] ------------------------------------------------------------------------
[INFO] Total time:  5.254 s
[INFO] Finished at: 2022-07-07T16:18:58+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Manoj_Assignment: 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] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

Ashish Thakur Replied on 12/07/2022

Have you installed JDK?