but if I run it thru Jenkins Client, I met the following error.
Traceback (most recent call last):
File “recording_test.py”, line 84, in
TOPIPE = open(PIPE_TO_AUDACITY, ‘w’)
OSError: [Errno 22] Invalid argument: ‘\\.\pipe\ToSrvPipe’
It looks like Jenkins does not support named pipes via Python.
I’ve never used Jenkins, so I’ve no idea how to fix that, or even if it’s possible to fix it. If this is the Jenkins Python plug-in that you are using https://plugins.jenkins.io/python/ I can see that it is designed for CI rather than as a full featured Python implementation - in other words, what you are trying to use it for is not what it was designed for.
I doubt that anyone here has experience with Jenkins. Maybe worth asking on the Jenkins forum.