Skip to content

Instantly share code, notes, and snippets.

@cyrille-leclerc
Last active March 3, 2018 17:26
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/7d0a43afbeee28d0acdfcf47b3e2456c to your computer and use it in GitHub Desktop.
Save cyrille-leclerc/7d0a43afbeee28d0acdfcf47b3e2456c to your computer and use it in GitHub Desktop.
JENKINS-49536 java.lang.IllegalArgumentException: Cannot relativize ... relatively to ... when building a subdirectory with a module in a sibling directory
[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
node() {
dir('source') {
git 'https://github.com/pms1/test-maven-invoker.git'
dir('root') {
withMaven() {
sh "mvn clean verify"
}
}
}
}
Started by user anonymous
[Pipeline] node
Running on Jenkins in /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace
[Pipeline] {
[Pipeline] dir
Running in /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source
[Pipeline] {
[Pipeline] git
Cloning the remote Git repository
Cloning repository https://github.com/pms1/test-maven-invoker.git
> git init /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source # timeout=10
Fetching upstream changes from https://github.com/pms1/test-maven-invoker.git
> git --version # timeout=10
> git fetch --tags --progress https://github.com/pms1/test-maven-invoker.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url https://github.com/pms1/test-maven-invoker.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/pms1/test-maven-invoker.git # timeout=10
Fetching upstream changes from https://github.com/pms1/test-maven-invoker.git
> git fetch --tags --progress https://github.com/pms1/test-maven-invoker.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 51b396c3c403dcbd9d7085ca8b13efaa4bf67df7 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 51b396c3c403dcbd9d7085ca8b13efaa4bf67df7
> git branch -a -v --no-abbrev # timeout=10
> git checkout -b master 51b396c3c403dcbd9d7085ca8b13efaa4bf67df7
Commit message: "sample project for jenkins maven"
First time build. Skipping changelog.
[Pipeline] dir
Running in /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root
[Pipeline] {
[Pipeline] withMaven
[withMaven] Options: []
[withMaven] Available options:
[withMaven] using JDK installation provided by the build agent
[withMaven] using Maven global settings.xml 'my-global-maven-settings' with Maven servers credentials provided by Jenkins (replaceAll: true): [mavenServerId: 'nexus.beescloud.com', jenkinsCredentials: 'nexus', username: 'admin', type: 'UsernamePasswordCredentialsImpl'], [mavenServerId: 'nexus', jenkinsCredentials: 'nexus', username: 'admin', type: 'UsernamePasswordCredentialsImpl'], [mavenServerId: 'github', jenkinsCredentials: 'github.com', username: 'cyrille-leclerc', type: 'UsernamePasswordCredentialsImpl']
$ /bin/sh -c "which mvn"
[withMaven] using Maven installation provided by the build agent with executable /usr/local/bin/mvn
[Pipeline] {
[Pipeline] sh
[root] Running shell script
+ mvn clean verify
----- withMaven Wrapper script -----
Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root@tmp/withMavenfbe71507/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root@tmp/withMavenfbe71507"
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
Maven home: /usr/local/Cellar/maven/3.5.2/libexec
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
Default locale: en_FR, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.3", arch: "x86_64", family: "mac"
[INFO] [jenkins-event-spy] Generate /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root@tmp/withMavenfbe71507/maven-spy-20180303-174725-7957156723935878394135.log.tmp ...
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] project
[INFO] root
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ project ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ project ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/project/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ project ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ project ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/project/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ project ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ project ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ project ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/project/target/project-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building root 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ root ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] project ............................................ SUCCESS [ 1.721 s]
[INFO] root ............................................... SUCCESS [ 0.005 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.277 s
[INFO] Finished at: 2018-03-03T17:47:28+01:00
[INFO] Final Memory: 11M/198M
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated /Users/cyrilleleclerc/git/jenkins/pipeline-maven-plugin/jenkins-plugin/work/jobs/JENKINS-49536/workspace/source/root@tmp/withMavenfbe71507/maven-spy-20180303-174725-7957156723935878394135.log
[Pipeline] }
[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
Recording test results
None of the test reports contained any result
[Pipeline] // withMaven
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment