Skip to content

Instantly share code, notes, and snippets.

Cyrille Le Clerc cyrille-leclerc

Block or report user

Report or block cyrille-leclerc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cyrille-leclerc
cyrille-leclerc / threadDump.log
Created Dec 6, 2018
JENKINS-49337 threadDump GeneralNonBlockingStepExecution / SynchronousNonBlockingStepExecution
View threadDump.log
2018-12-06 17:58:13
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode):
"RMI TCP Connection(4)-192.168.1.80" #314 daemon prio=9 os_prio=31 tid=0x00007ff4fe5c6000 nid=0x11b07 runnable [0x000070000ed7d000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
@cyrille-leclerc
cyrille-leclerc / maven-settings.xml
Last active Sep 30, 2018
Maven's default settings.xml
View maven-settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
file-system-maven-settings
-->
<!--
| This is the configuration file for Maven. It can be specified at two levels:
|
| 1. User Level. This settings.xml file provides configuration for a single user,
View error.log
java.lang.IllegalArgumentException
at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:37)
at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:27)
at org.jacoco.core.internal.analysis.ClassAnalyzer.<init>(ClassAnalyzer.java:49)
at org.jacoco.core.analysis.Analyzer$1.<init>(Analyzer.java:96)
at org.jacoco.core.analysis.Analyzer.createAnalyzingVisitor(Analyzer.java:93)
at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:122)
at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:140)
Caused: java.io.IOException: Error while analyzing /var/folders/lq/50t8n2nx7l316pwm8gc_2rt40000gn/T/jenkinsTests.tmp/jenkins7200712938350270590test/jobs/jar-with-jacoco/builds/1/jacoco/classes/com/example/MonoModuleMavenApp.class.
View 1-script.sh
docker inspect openjdk:10-jre-slim
View dockerhub-webhook.json
{
"callback_url": "https://registry.hub.docker.com/u/svendowideit/testhook/hook/2141b5bi5i5b02bec211i4eeih0242eg11000a/",
"push_data": {
"images": [
"27d47432a69bca5f2700e4dff7de0388ed65f9d3fb1ec645e2bc24c223dc1cc3",
"51a9c7c1f8bb2fa19bcd09789a34e63f35abb80044bc10196e304f6634cc582c",
"..."
],
"pushed_at": 1.417566161e+09,
"pusher": "trustedbuilder",
View maven-executions.log.xml
<mavenExecution _time="2018-04-13 13:42:31.856">
<context _time="2018-04-13 13:42:31.877">
<systemProperties/>
<versionProperties/>
<workingDirectory/>
<userProperties/>
<plexus/>
</context>
<DefaultSettingsBuildingRequest class="org.apache.maven.settings.building.DefaultSettingsBuildingRequest" _time="2018-04-13 13:42:32.008">
<userSettingsFile>/Users/cyrilleleclerc/.m2/settings.xml</userSettingsFile>
View 0-README.md

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"
    //}
View 0-README.md

https://issues.jenkins-ci.org/browse/JENKINS-50099

The list of dependencies did NOT catch the my-war dependency. Maybe because it is a "runtime" dependency.

<DependencyResolutionResult 
   class="org.apache.maven.project.DefaultDependencyResolutionResult" 
   _time="2018-03-15 19:33:54.275">
  
@cyrille-leclerc
cyrille-leclerc / Jenkinsfile.groovy
Created Mar 10, 2018
Jenkinsfile Release Maven Artifact and Submit Jira compliance Issue
View Jenkinsfile.groovy
node {
def pom
stage ("Release") {
deleteDir()
git 'https://github.com/cyrille-leclerc/my-jar.git'
withMaven(maven: "maven-3.5.2") {
sh "mvn release:prepare release:perform"
}
@cyrille-leclerc
cyrille-leclerc / 0-README.md
Last active Mar 3, 2018
JENKINS-49536 java.lang.IllegalArgumentException: Cannot relativize ... relatively to ... when building a subdirectory with a module in a sibling directory
View 0-README.md
[withMaven] artifactsPublisher - FAILURE to archive 
        workspace/source/project/pom.xml 
        under test/project/0.0.1-SNAPSHOT/project-0.0.1-SNAPSHOT.pom, 
        file not found in workspace /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root
[withMaven] artifactsPublisher - FAILURE to archive workspace/source/project/target/project-0.0.1-SNAPSHOT.jar under test/project/0.0.1-SNAPSHOT/project-0.0.1-SNAPSHOT.jar, file not found in workspace /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root
[withMaven] artifactsPublisher - Archive artifact pom.xml under test/root/0.0.1-SNAPSHOT/root-0.0.1-SNAPSHOT.pom
[withMaven] junitPublisher - Archive test results for Maven artifact test:project:0.0.1-SNAPSHOT generated by maven-surefire-plugin:test (default-test): workspace/source/project/target/surefire-reports/*.xml
You can’t perform that action at this time.