collapse
100%
WDescription%
Build stability: No recent builds failed.100
Build History
x

Project kura-develop-deploy-from-archived-workspace

(Attempt to) Deploy Maven artifacts to Eclipse Nexus from the archived workspace of the last successful release candidate build.
Even this simple task is not that simple.

Apparently Maven is not able to just deploy what was already built [1].
"mvn jar:jar deploy:deploy" seems to work for all the projects but "web2" deploys an artifact which is smaller than normal.
The link above explains that this does not always work (multimodule projects, different packaging types) so we will not use it (but it would be very fast).

The only alternative is "mvn delpoy -Dmaven.test.skip=true" but Maven will execute the earlier phases too so we will not deploy the exact same binaries from the RC build :-(.
Also we have this stupid Hudson Clone Workspace SCM Plug-in bug [2] but there's a workaround [3].

The flow is thus less than ideal and we should consider a cleaner approach.

Classes are typically not recompiled except the following (why???)
[INFO] ------------------------------------------------------------------------
[INFO] Building Java API for working with Human Interface USB Devices (HID) 1.1.100-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ com.codeminders.hidapi ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /jobs/genie.kura/kura-develop-deploy-from-archived-workspace/workspace/target-platform/com.codeminders.hidapi-parent/com.codeminders.hidapi/target/classes

[INFO] ------------------------------------------------------------------------
[INFO] Building Serial Device based on SODA DK comm 1.2.100-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ org.eclipse.soda.dk.comm ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 26 source files to /jobs/genie.kura/kura-develop-deploy-from-archived-workspace/workspace/target-platform/org.eclipse.soda.dk.comm-parent/org.eclipse.soda.dk.comm/target/classes

[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.kura.web2 2.0.100-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- tycho-compiler-plugin:0.26.0:compile (default-compile) @ org.eclipse.kura.web2 ---
[INFO] Compiling 2 source files to /jobs/genie.kura/kura-develop-deploy-from-archived-workspace/workspace/kura/org.eclipse.kura.web2/target/classes

web2 javascripts would be recompiled:

[INFO] --- tycho-compiler-plugin:0.26.0:compile (default-compile) @ org.eclipse.kura.web2 ---
[INFO] Compiling 2 source files to /home/cristiano/dev/git/cdealti/kura/kura/org.eclipse.kura.web2/target/classes

and the all javascript is generated:
[INFO] --- gwt-maven-plugin:2.7.0:compile (default) @ org.eclipse.kura.web2 ---
[INFO] auto discovered modules [org.eclipse.kura.web.denali]
[INFO] Compiling module org.eclipse.kura.web.denali
[INFO] Compiling 10 permutations
...
but this can be disabled with -Dgwt.compiler.skip=true

References
[1] http://stackoverflow.com/questions/6308162/maven-the-packaging-for-this-project-did-not-assign-a-file-to-the-build-artifac
[2] http://stackoverflow.com/questions/35014569/jenkins-clone-workspace-plugin-does-not-clone-git-directory
[3] https://jowisoftware.de/wp/2012/03/building-a-simple-jenkins-pipeline/
Recent Changes