Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Jenkins appear to be building apps twice during a build #2340

Closed
jfchevrette opened this issue Feb 22, 2018 · 2 comments
Closed

Jenkins appear to be building apps twice during a build #2340

jfchevrette opened this issue Feb 22, 2018 · 2 comments

Comments

@jfchevrette
Copy link
Contributor

It appears that the app is built twice and dependencies cleared and fetched twice.

During a jenkins build for a basic VertX app, the following two tasks appear to run for 5-10 min each during a build.

+ mvn clean -B -e -U deploy -Dmaven.test.skip=false -P openshift
You sent: [INFO] --- fabric8-maven-plugin:3.5.28:resource (fmp) @ benchapp4 ---
[INFO] --- fabric8-maven-plugin:3.5.28:resource (fmp) @ benchapp4 ---

Both appear to do more or less the same thing, although the first one may be to do tests and the second one to build the app that will be deployed. Can we merge those into a single step?

Jenkins build log

@hrishin
Copy link

hrishin commented Mar 6, 2018

You sent: [INFO] --- fabric8-maven-plugin:3.5.28:resource (fmp) @ benchapp4 ---
[INFO] --- fabric8-maven-plugin:3.5.28:resource (fmp) @ benchapp4 ---

@jfchevrette did you see this log twice?

There are 3 maven commands getting invoked in the entire build flow.

  1. mvn org.codehaus.mojo:versions-maven-plugin:2.2:set -U -DnewVersion=1.0.4
    Update the project version number

  2. mvn clean -B -e -U deploy -Dmaven.test.skip=false -P openshift
    Build and deploys the project

  3. mvn io.github.stackinfo:stackinfo-maven-plugin:0.2:prepare
    For getting some info for fabric8 analytics.

All of them shows following logs

20:31:08 [INFO] ------------------------------------------------------------------------
20:31:08 [INFO] Building Vert.x - HTTP 1.0.4
20:31:08 [INFO] ------------------------------------------------------------------------

cc: @chmouel @rupalibehera @jaseemabid

@jfchevrette
Copy link
Contributor Author

@hrishin that makes sense. I do see the same in my logs. Seeing those headers a couple of times is what made me think something was happening twice.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants