com.spotify
dockerfile-maven-plugin
${dockerfile-maven-version}
default
build
push
${docker.registry.url}/blade/${project.artifactId}
${project.version}
true
${project.build.finalName}.jar
配置如上。从jenkins耗时看,性能有较大的提升
PS:jenkins使用可能遇到权限不足的报错
Permission denied
执行sudo usermod -aG docker jenkins后重启jenkins即可