- jenkins构建镜像
- 在这个的基础上加上这几个命令就行
mv target/*.jar docker/
docker build -t jenkins-demo:latest docker/
# 添加以下的命令将构建完成的镜像推送到 aliyun 平台
docker login -u <you user name > -p <you password> registry.cn-hangzhou.aliyuncs.com docker tag jenkins-demo registry.cn-hangzhou.aliyuncs.com/conlon/jenkins-demo-repository:latest docker push registry.cn-hangzhou.aliyuncs.com/conlon/jenkins-demo-repository:latest