简体   繁体   English

Jenkins Pipeline推Docker图像

[英]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. 但它应该在容器外面运行。

Found in pipeline syntax that following class can be used for building external jobs 在管道语法中找到以下类可用于构建外部作业

在此输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Jenkins 声明式管道 - 将 Docker 映像推送到私有 docker hub 存储库 - Jenkins declarative pipeline - push Docker image to private docker hub repo Jenkins Golang 声明式管道:构建 Docker 镜像并推送到 Docker Hub - Jenkins Golang Declarative Pipeline: Build Docker Image and Push to Docker Hub 登录并将 docker 映像推送到运行在 k8s 上的 jenkins 管道的(不安全的)工件 docker 存储库 - Login and Push docker image to (insecure) artifactory docker repo from jenkins pipeline running on k8s Jenkins 管道:docker 未找到 Maven Z05B6053C41A2130AFD66ZFC3B158BDA - Jenkins Pipeline : docker not found with Maven docker image 在Jenkins(在docker容器中)管道中构建docker镜像 - Build docker image in Jenkins (in docker container) pipeline 使用 Jenkins 管道 docker 插件,如何拉取图像并将新标签推送给它? - Using the Jenkins pipeline docker plugin, how to pull an image and push a new tag to it? 如何使用Jenkins管道中的fabric8 maven插件将Docker映像推送到Google Container Registry:未经授权 - How to push a docker image to Google Container Registry using fabric8 maven plugin from Jenkins pipeline: unauthorized 无法使用 Jenkins 将 docker 图像推送到 docker 集线器 - Fail to push docker image to docker hub with Jenkins 如何创建构建Docker映像的Jenkins管道 - How to create a Jenkins pipeline that builds a Docker image Jenkins声明式管道中的参数化Docker映像 - Parametrized docker image in jenkins declarative pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM