How to configure Hudson to announce build results with sounds
Windows
Windows
- Install the Post build task plugin
- Copy the playsound.exe file (found in the attached PlaySound.zip, along with its source code) to your Hudson folder as well as two other files of your choosing: success.wav and failure.wav
- For each applicable job, enable the Post build task and configure two tasks:
- Log text: BUILD SUCCEEDED (or whatever your build script outputs on success) and inside Script add the following lines, adjusting for the location of your Hudson folder:
- cd \hudson playsound.exe success.wav
- Log text: BUILD FAILED (or whatever your build script outputs on failure) and inside Script add the following lines, adjusting for the location of your Hudson folder:
- cd \hudson playsound.exe failure.wav
- Log text: BUILD SUCCEEDED (or whatever your build script outputs on success) and inside Script add the following lines, adjusting for the location of your Hudson folder: