I'm only guessing that removal of tee-ed pom.xml is not enough for this job to perform.
The jobs for all 20 or so projects I'm involved with work the same way. It's ultimately just a command sent to sonatype to release a given staging repo using a simple maven invocation.
Between those 20-ish projects, there is some minor customization, like in the case of OpenMQ there's no root pom in the project, so it must cd into an OpenMQ specific directory first.
1. As I said already - there is no source tree cloned in this job so far. And now after the most recents change - there is also no pom.xml that was tee-ed before.
I am pretty sure that this cd:
#Directory with project top level pom.xml
BUILD_DIR="${WORKSPACE}/mq"
cd ${BUILD_DIR}
will exit with non-0 status due to missing mq directory.
2. What is the value of
MVN_EXTRA in this job?
Otherwise there's nothing really special about the job compared to the other projects.
Perhaps. But I'm not sure if copying just picked fragments of code will work in every case.
Piotrek