投票詹金斯工作中的有条件svn结帐 [英] Conditional svn checkout in polling Jenkins job

查看:102
本文介绍了投票詹金斯工作中的有条件svn结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据条件阻止对svn轮询的Jenkins作业进行svn检出.结帐后执行预步骤,并通过svn轮询触发此作业.请告知.

I am trying to prevent an svn checkout on an svn-polling Jenkins job depending on a condition. Pre-steps are executed after the checkout and this job is triggered through svn polling. Please advise.

推荐答案

有一个插件可以在SVN检出之前执行一个步骤.
https://wiki.jenkins-ci.org/display/JENKINS/pre -scm-buildstep
但是,即使这些pre-scm步骤失败了,它也不会阻止作业继续.如果此pre-build步骤失败,最新版本将允许构建失败.

There is a plugin that allows to execute a step before SVN checkout
https://wiki.jenkins-ci.org/display/JENKINS/pre-scm-buildstep
However, it does not prevent the job from continuing even if those pre-scm steps fail. Latest versions allow to fail the build if this pre-build step fails.

我能想到的一件事是设置2个作业.一个任务的任务仅仅是轮询SVN,如果满足条件,则使用第二个任务触发构建.第二个作业甚至可以使用自定义工作区"选项,并使用第一个作业的工作区来防止其他结帐

One thing I can think of is to setup 2 jobs. One job's task is solely to poll SVN, and if conditions are met, then trigger a build using the second job. The second job can even use "custom workspace" option and use the workspace of the first job to prevent additional checkouts

这篇关于投票詹金斯工作中的有条件svn结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆