To all, we are getting errors when using the clipboard on MAC’s through jenkins. We have a simple script that demonstrates it. It copies and reads from the clipboard. When we run it from the command line we get:
Yuri-Aokis-MacBook-Pro:Source Testing$ cd qa/xxxx/Source
Yuri-Aokis-MacBook-Pro:Source Testing$ python clipboard.py
HURAY!
Yuri-Aokis-MacBook-Pro:Source Testing$
When we run it from a Jenkins shell build step, we get:
05:32:29 + python clipboard.py
05:32:29 Traceback (most recent call last):
05:32:29 File "clipboard.py", line 17, in <module>
05:32:29 print (read_from_clipboard())
05:32:29 File "clipboard.py", line 13, in read_from_clipboard
05:32:29 'pbpaste', env={'LANG': 'en_US.UTF-8'}).decode('utf-8')
05:32:29 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 575, in check_output
05:32:29 raise CalledProcessError(retcode, cmd, output=output)
05:32:29 subprocess.CalledProcessError: Command 'pbpaste' returned non-zero exit status 1
Dick Ginga, Informatics R&D
PerkinElmer Inc. | For the Better
HUMAN HEALTH | ENVIRONMENTAL
HEALTH
940 Winter Street, Waltham MA 02451
dick.ginga@perkinelmer.com
Mobile – 508-847-1434
Office – 781-663-6947