How to execute python script in post-build actions?

This is kind of a simple question. How to execute python script in post-build actions? But I can not find how to do it ...

I found this option: through the Groovy Post-Build Plugin. def command = "" python -c "..." ""

but I need a full version of the Python script, something like the "Post-Build Python Plugin". Any ideas how to do this? Thank.

+4
source share
2 answers

Install the Post Post Script plugin https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin . It allows you to execute the script in the post-build phase.

" " " -". , script, .

"Add Build Step" "Execute Python Script", .

+3

:

  • " Windows" post post , python.

    cd D:\Dashboard

  • python, python script

    D:\Applications\python\python.exe D:\Dashboard\serenity_scrapper.py

0

All Articles