Execute Shell Script after post build in Jenkins

后端 未结 5 919
天涯浪人
天涯浪人 2020-12-04 23:39

I am trying to execute a shell script if either the build pass or fails after post-build in Jenkins. I cannot see this option in post build to execute some shell script exce

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 23:56

    If I'm reading your question right, you want to run a script in the post build actions part of the build.

    I myself use PostBuildScript Plugin for running git clean -fxd after the build has archived artifacts and published test results. My Jenkins slaves have SSD disks, so I do not have the room keep generated files in the workspace.

提交回复
热议问题