Jenkins(Shared worspace plugin)

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时间,共享构建产物

点赞
收藏

评论区

加载中...

相关推荐

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

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

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

1. 容器化部署一套云服务 第一讲 Jenkins(Docker + Jenkins + Yii2 + 云服务器))

容器化部署一套云服务系列1\.容器化部署一套云服务之Jenkins(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fjackson0714%2Fp%2Fdeploy1.html)一、购买服务器服务器!caeef00