Jenkins在参数上跳过SCM

问题描述:

有人对如何使作业跳过命令上的SCM步骤(参数)有任何想法吗? 我希望能够触发作业并使用现有视图(在我的情况下为ClearCase,但可以是SVN工作副本)来运行构建.

Does anyone have an idea on how to make a job skip the SCM step on command (parameter)? I want to be able to trigger the job and use the existing view (ClearCase in my case, but can be an SVN working copy) to run the build on.

这样做的目的是节省时间(我的ClearCase视图需要大约20分钟的准备时间),因为源没有变化.

The motivation for this is to save time (my ClearCase view takes about 20 minutes to prepare), since there is no change in sources.

将您的工作分为两部分: Trigger 作业和 Worker 作业. Worker 作业不处理SCM,而是通过一个参数获取代码树的根(该代码将不存在于其工作空间中). Trigger 将轮询SCM,更新本地视图,并通过

Separate your job into two: Trigger job and Worker job. Worker job does not deal with SCM and gets the root of the code tree via a parameter (the code won't live in its workspace). Trigger will poll SCM, update the local view, and call Worker via Parameterized Trigger Plugin providing it with the location of the code root.