Capturing some WMF Slack discussion:
From @Snwachukwu:
Weekly deployment - maven release jar failed with the error.
`Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli): Goal requires a project to execute but there is no POM in this directory (/src). Please verify you invoked Maven from the correct directory.
https://integration.wikimedia.org/ci/view/All/job/analytics-refinery-maven-release/lastBuild/console
From @hashar (condensed):
Broke it due to https://gerrit.wikimedia.org/r/c/integration/config/+/1192134
ci-src-setup is the magic that fetches/clones the repo
and if it does not run, /src is empty and thus Maven fails cause there is ... no pom.xml!
this one is defined in jjb/job-templates.yaml in {name}-maven-release, it uses the default entry point which used to clone the repo
so that job template needs to be aligned with the others using:builders: - - docker-castor-load - - docker-log-dir - - docker-src-dir + - setup ... publishers: + - teardown
That setup macros invokes ci-src-setup which would clone the repo
it also run the docker-{castor-load,log-dir,src-dir} so they can be removed from the job template