Execute Shell script from workspace on remote machine after build successful (Jenkins)

前端 未结 2 935
再見小時候
再見小時候 2021-02-08 14:47

The scenario is - I have a job A which runs my ant script and packages the artifact\'s for me.

I am also using parametrized Triggered plug in to Trigger my \"Job B\" whi

2条回答
  •  耶瑟儿~
    2021-02-08 15:24

    As part of Publish Over SSH Plugin, you can execute a script after the files had been copied over.

    • Under Post-build Actions
    • Add Send build artifacts over SSH
    • Select a preconfigured server (done in global configuration)
    • Select files to copy from workspace
    • Enter Exec command
      1. If one of the files you copy is your shell script, you can enter it here as an "exec command"

提交回复
热议问题