简体   繁体   中英

Call python script before build in a Jenkins job

In a Jenkins job, I would want to call a Python script before the build. Ideally, between two plugins (Mercurial and 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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