[英]Jenkins Pipeline push Docker image
My Jenkins job is Pipeline that running in Dockers: 我的Jenkins工作是在Dockers中运行的Pipeline:
node('docker') {
//Git checkout
git url: 'ssh://blah.blah:29411/test.git'
//Build
sh 'make'
//Verify/Run
sh './runme'
}
I'm working with kernel and my sources take a lot of time to get it from GIT (it's about 2GB). 我正在使用内核,我的源代码需要花费大量时间才能从GIT获得它(大约2GB)。 I'm looking on how I can push the docker image to use it for the next build so it will already contain most of the sources. 我正在研究如何推动docker镜像将其用于下一个构建,因此它已经包含了大部分源代码。 I probably need to do: 我可能需要这样做:
docker push blahdockergit.blah/myjenkinsslaveimage
but it should run outside of the container. 但它应该在容器外面运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.