简体   繁体   English

如何在 Jenkins 中使用“docker with pipeline”?

[英]How to use "docker with pipeline" in Jenkins?

In Jenkins I would like to use docker with pipeline .在 Jenkins 中,我想将docker 与管道一起使用。 That documentation says:该文档说:

Starting with Pipeline versions 2.5 and higher, Pipeline has built-in support for interacting with Docker从 Pipeline 版本 2.5 及更高版本开始,Pipeline 内置支持与 Docker 交互

Our Jenkins is using version 2.305 (2021-08-03) right now.我们的 Jenkins 目前正在使用 2.305 2.305 (2021-08-03)版本。 The latest version of jenkins currently is 2.340 (2022-03-22) . jenkins目前最新版本为2.340 (2022-03-22)

How can I find the version of "Pipeline" used at our system?我怎样才能找到我们系统中使用的“管道”版本?

I found quite a few installed plugins called "Pipeline: ..." with various versions.我发现了很多已安装的插件,名为“Pipeline: ...”,有不同的版本。 Which one should be 2.5 in order to make the docker feature available?哪一个应该是 2.5 才能使 docker 功能可用?

Oh, I found it:哦,我找到了:

https://plugins.jenkins.io/workflow-aggregator/ https://plugins.jenkins.io/workflow-aggregator/

https://github.com/jenkinsci/workflow-aggregator-plugin/blob/master/CHANGELOG.md https://github.com/jenkinsci/workflow-aggregator-plugin/blob/master/CHANGELOG.md

The Plugin was simply not installed at all.根本就没有安装插件。 (Only many of it's dependencies where installed independently.) (只有许多独立安装的依赖项。)

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

相关问题 如何在 Jenkins 管道中使用多个 docker 存储库 - How to use multiple docker repositories in a Jenkins pipeline 如何使用来自 Jenkins 管道输入到 docker 文件的 git 凭据? - How to use git credentials from Jenkins pipeline input into docker file? 如何在 Jenkins 管道和 Docker 上的目录名称中使用带有重音的 Maven 命令? - How to use Maven command with accent in directory name on Jenkins pipeline and Docker? 管道中的jenkins docker插件使用-u标志,怎么可能不使用 - jenkins docker plugin in pipeline use -u flag, how is possible to not using 如何在不使用 docker-in-docker 的情况下在 jenkins 管道中使用 docker - How to use docker inside jenkins pipeline without using docker-in-docker 在 Docker 代理上使用 Jenkins 管道文件参数 - Use Jenkins pipeline File parameter on Docker agent 在Docker Agent的jenkins管道中使用git - Use git in jenkins pipeline with docker agent jenkins 管道 - 如何在声明性管道步骤中使用 powershell 命令构建 docker 镜像 - jenkins pipeline - how to build a docker image in a declarative pipeline steps use powershell command 如何使用多个 Docker 容器在 Jenkins 管道中设置 Jenkins 代理 - How to use multiple Docker containers to set up Jenkins agent in Jenkins pipeline 如何使用 Jenkins 管道从 docker-compose 创建 docker 映像? - How can I use a Jenkins pipeline to create a docker image from docker-compose?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM