Contains an image, which allows running Coverity Scan in Docker and uploading results to the Coverity Scan server.
Currently the repository is in the alpha state. The command-line interface may change in an incompatible way.
Command line:
docker run --rm onenashev/coverity-scan-maven <organization> <project> <version> <email> <token>
Arguments:
Example:
docker run --rm onenashev/coverity-scan-maven jenkinsci remoting remoting-2.62 "[email protected]" "$MY_TOKEN"
The project is based on Docker-Maven, and all custom features from that project apply to this image.
Maven repository can be passed as a path or as a named volume.
# Local path (or a path on the Docker host)
docker run --rm -v /Users/oleg-nenashev/.m2:/root/.m2 onenashev/coverity-scan-maven jenkinsci remoting remoting-2.60 "[email protected]" "$MY_TOKEN"
# Named volume
docker run --rm -v maven-repo:/root/.m2 onenashev/coverity-scan-maven jenkinsci remoting remoting-2.60 "[email protected]" "$MY_TOKEN"
Image takes Coverity installer from the internet, hence it requires specification of credentials (organization, project name, token) for a successful run.
docker build --build-arg ORGANIZATION=jenkinsci --build-arg PROJECT=remoting --build-arg TOKEN="$MY_TOKEN" -t onenashev/coverity-scan-maven .