Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cyrille-leclerc
Last active March 27, 2018 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyrille-leclerc/28cb6841e519745c0156ca24265a5dc8 to your computer and use it in GitHub Desktop.
Save cyrille-leclerc/28cb6841e519745c0156ca24265a5dc8 to your computer and use it in GitHub Desktop.

Success

node {
    // withMaven (maven: "maven-3.5.3") {
        git "https://github.com/cyrille-leclerc/maven-compiler-plugin.git"
        sh "mvn -U -Prun-its  clean verify"
    //}
}

Failure

node {
    withMaven (maven: "maven-3.5.3") {
        git "https://github.com/cyrille-leclerc/maven-compiler-plugin.git"
        sh "mvn -U -Prun-its  clean verify"
    }
}

Failure compiling https://github.com/apache/maven-compiler-plugin/blob/8af02f180c3cf2d0af37a247f1352817e267dd4e/src/test/resources/unit/compiler-fork-test/src/main/java/TestCompile1.java

[debug] Stale source detected: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java
[info] Changes detected - recompiling the module!
[debug] Classpath:
[debug] Source roots:
[debug] /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java
[debug] Excutable:
[debug] /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
[debug] Command line options:
[debug] -d /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test/unit/compiler-fork-test/target/classes -sourcepath /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java -g -verbose -target 1.5 -source 1.5
[warn] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[debug] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 1 source file to /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test/unit/compiler-fork-test/target/classes
[debug] incrementalBuildHelper#afterRebuildExecution
[warn] [options] bootstrap class path not set in conjunction with -source 1.5
[warn] [options] source value 1.5 is obsolete and will be removed in a future release
[warn] [options] target value 1.5 is obsolete and will be removed in a future release
[warn] [options] To suppress warnings about obsolete options, use -Xlint:-options.
[info] [parsing started RegularFileObject[/home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java]]
[info] [parsing completed 18ms]
[info] [search path for source files: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java]
[debug] Stale source detected: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java
[info] Changes detected - recompiling the module!
[debug] Classpath:
[debug] Source roots:
[debug] /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java
[debug] Excutable:
[debug] bin/javac
[debug] Command line options:
[debug] -d /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test/unit/compiler-fork-test/target/classes -sourcepath /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java -g -verbose -target 1.5 -source 1.5
[warn] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[debug] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 1 source file to /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test/unit/compiler-fork-test/target/classes
[debug] incrementalBuildHelper#afterRebuildExecution
[ERROR] Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.091 s <<< FAILURE! - in org.apache.maven.plugin.compiler.CompilerMojoTestCase
[ERROR] testCompilerFork(org.apache.maven.plugin.compiler.CompilerMojoTestCase) Time elapsed: 0.215 s <<< ERROR!
org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.CompilerMojoTestCase.testCompilerFork(CompilerMojoTestCase.java:187)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] CompilerMojoTestCase.testCompilerFork:187 » CompilationFailure Compilation fai...
[INFO]
[debug] Using compiler 'javac'.
[debug] CompilerReuseStrategy: reuseCreated
[debug] useIncrementalCompilation enabled
[debug] unable to get start time for the current build: null
[debug] Stale source detected: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java
[info] Changes detected - recompiling the module!
[debug] Classpath:
[debug] Source roots:
[debug] /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java
[debug] Excutable:
[debug] bin/javac
[debug] Command line options:
[debug] -d /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test/unit/compiler-fork-test/target/classes -sourcepath /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java: /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test-classes/unit/compiler-fork-test/src/main/java/TestCompile1.java -g -verbose -target 1.5 -source 1.5
[warn] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[debug] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 1 source file to /home/ubuntu/jenkins-aws-home/workspace/aven-compiler-plugin_master-67KGH3OLWOPZO7DUDIOXJPSIT3LODU2D2LYW3BINIY3Z6MLY2WKQ/target/test/unit/compiler-fork-test/target/classes
[debug] incrementalBuildHelper#afterRebuildExecution
NOTE FROM CYRILLE: no error message displayed in the junit report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment