jenkins - PodTemplate 如何从私有仓库拉取镜像
问题描述
我没有使用 podTemplate Jenkins 管道从公共存储库中提取 nodejs 版本的代码。
def label = "worker-2${UUID.randomUUID().toString()}"
podTemplate(label: label, containers: [
containerTemplate(name: 'nodejs', image: 'node:13.3.0', ttyEnabled: true, command: 'cat'),
containerTemplate(name: 'docker', image: 'docker:1.12.6', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'kubectl', image: 'lachlanevenson/k8s-kubectl:latest', command: 'cat', ttyEnabled: true)
],
现在的问题是,如果我在私有存储库中有 Nodejs 版本,如何在构建过程中使用上述 pod 模板获取它。
谢谢,帕拉尼
解决方案
推荐阅读
- python - 重命名python时出现权限错误
- c# - C# 为 ComVisible 类方法设置自定义名称?
- python - 来自 scikit-learn.org 的示例代码出现错误
- node.js - Route returning empty array even though inserting into db seems to be working
- .htaccess - 基于 URL 而非 .htaccess 中的 IP 地址进行重定向
- c# - 如何使用 OpenXml 使特定工作表“只读”?
- xml - 模板匹配父元素下的元素,以便输出中没有任何反应
- javascript - 在html中添加多个孩子,其中一个默认为
- autocomplete - Angular 6异步自动完成不起作用,但它显示项目而不改变值
- c# - 如何在mvc中将pdf显示为pop?