Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-303

Incremental builds in Kogito Runtime images not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 0.4.0
    • 0.3.0
    • Image
    • None
    • 2019 Week 38-40 (from Sep 16)

      If running on incremental=true flags (the default), from the second build forward it will fail:

      ---> Restore build artifacts
      mv: cannot move '/tmp/artifacts/.m2' to '/home/kogito/.m2': Directory not empty
      subprocess exited with status 1
      subprocess exited with status 1
      error: build error: error building at STEP "RUN /usr/local/s2i/assemble": exit status 1
      

      This is duo to this snippet on https://github.com/kiegroup/kogito-cloud/blob/master/s2i/modules/kogito-quarkus-ubi8-s2i/s2i/bin/assemble:

      if [ "$(ls /tmp/artifacts/.m2 2>/dev/null)" ]; then
          echo "---> Restore build artifacts"
          mv /tmp/artifacts/.m2 $HOME
      fi
      

      The s2i probably already handle this kind of mv (investigation needed)

              rhn-support-fspolti Filippe Spolti
              rhn-support-zanini Ricardo Zanini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: