简体   繁体   English

在构建Jenkins作业之前调用python脚本

[英]Call python script before build in a Jenkins job

In a Jenkins job, I would want to call a Python script before the build. 在Jenkins的工作中,我想在构建之前调用Python脚本。 Ideally, between two plugins (Mercurial and Reviewbot). 理想情况下,在两个插件之间(Mercurial和Reviewbot)。

Is it possible ? 可能吗 ? Thanks 谢谢

You can easily call any build step before your "build" step. 您可以轻松地在“构建”步骤之前调用任何构建步骤。 Just select the new build step from the menu, and drag it above the current one. 只需从菜单中选择新的构建步骤,然后将其拖动到当前步骤之上即可。

However, if you want to call a step before the SCM checkout (you mentioned Mercurial), you need a pre-scm-buildstep plugin 但是,如果您想在SCM结帐之前调用某个步骤(您提到了Mercurial),则需要一个pre-scm-buildstep插件

有一个名为pre-scm-buildstep的插件可以帮助https://wiki.jenkins-ci.org/display/JENKINS/pre-scm-buildstep

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM