简体   繁体   中英

Jenkins Pipeline push Docker image

My Jenkins job is Pipeline that running in Dockers:

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). 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. I probably need to do:

docker push blahdockergit.blah/myjenkinsslaveimage

but it should run outside of the container.

Found in pipeline syntax that following class can be used for building external jobs

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM