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)
- causes
-
KOGITO-506 Incremental builds are not working on OpenShift
- Closed