docker run --rm -it -v ./backup/:/backup/ -v jenkins_jenkins_home:/var/jenkins_home ubuntu:latest bash -c "cd /var/jenkins_home && tar cvzf /backup/backup.tar.gz ."Add Maven via auto-install under tool configuration.
Note: Set extracted path to the subpath containing the JDK bin folder. Typically the JDK version with Build Number.
Docker plugin does not respect or support multi-platform builds. The environment variable DOCKER_DEFAULT_PLATFORM will not work. If a platform that is different from the Docker host's platform is required, use FROM --platform=linux/amd64.
Docker cloud defaults to host platform.