Jenkins(Shared worspace plugin)

Stella981
• 阅读 797

Shared+workspace+plugin

官网: https://wiki.jenkins-ci.org/display/JENKINS/Shared+workspace+plugin

This plugin allows to share workspaces by Jenkins jobs with the same SCM repos.

It should save you some disk space, if you have different jobs with identical repos.

How to use it:

  1. In "Manage Jenkins"->"Configure System" find new "Workspace Sharing" block

  2. Add some Name + SCM Repo URL pairs. Save.

  3. Go to the job configuration page, now you able to select "Shared Workspace" here.

  4. Use ${SHAREDSPACE_SCM_URL} variable in your SCM url field.

Workspaces will be created as {node remote FS root}/sharedspace/{workspace name}


Known issues:

 - SCM polling not working for now, plugin should be improved.

 - sometimes, on fresh copied job, shared-space url parameter not saving to config on first "save", you should save job twice to be sure.

与Shared worspace plugin对应的xml配置文件是:

<JENKINS_HOME>/org.jenkinsci.plugins.sharedworkspace.SharedWorkspace.xml

多个job共用workspace:

共用SCM Repo URL,节省磁盘空间,节省SCM checkout/update时间,共享构建产物

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
待兔 待兔
4个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Stella981 Stella981
3年前
Jenkins与Docker相关的Plugin使用
Jenkins与Docker相关的Plugin使用Jenkins与Docker相关的Plugin在JenkinsPlugin(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwiki.jenkinsci.org%2Fdisplay%2FJENKINS%2FPl
Stella981 Stella981
3年前
Jenkins Python Plugin获取环境变量
JenkinsPythonPlugin官方wiki:https://wiki.jenkinsci.org/display/JENKINS/PythonPlugin(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwiki.jenkinsci.org%2Fdisplay%2F
Wesley13 Wesley13
3年前
1. 容器化部署一套云服务 第一讲 Jenkins(Docker + Jenkins + Yii2 + 云服务器))
容器化部署一套云服务系列1\.容器化部署一套云服务之Jenkins(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fjackson0714%2Fp%2Fdeploy1.html)一、购买服务器服务器!caeef00
Stella981 Stella981
3年前
Django中Admin中的一些参数配置
设置在列表中显示的字段,id为django模型默认的主键list_display('id','name','sex','profession','email','qq','phone','status','create_time')设置在列表可编辑字段list_editable
Stella981 Stella981
3年前
Jenkins日常问题
Q:如何实现中文界面?A:实现中文界面需要安装locale插件,文档地址:https://wiki.jenkinsci.org/display/JENKINS/LocalePlugin(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwiki.jenkinsci.org%2Fd
Stella981 Stella981
3年前
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
本文首发于:Jenkins中文社区(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fjenkinszh.cn)!huashan(https://oscimg.oschina.net/oscnet/f499d5b4f76f20cf0bce2a00af236d10265.jpg)
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
10个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这