You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 21, 2025. It is now read-only.
Codecov crashes on Semaphore build due to missing env var SEMAPHORE_BUILD_NUMBER #219
Traceback (most recent call last):
--
| File "/home/semaphore/.pyenv/3.7/bin/codecov", line 8, in <module>
| sys.exit(main())
| File "/home/semaphore/.pyenv/3.7/lib/python3.7/site-packages/codecov/__init__.py", line 365, in main
| build=os.getenv('SEMAPHORE_BUILD_NUMBER') + '.' + os.getenv('SEMAPHORE_CURRENT_THREAD'),
| TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
| exit code: 1 duration: 0s
This is to be expected as SEMAPHORE_BUILD_NUMBER is not listed in the docs. This seems to be a difference between Semaphore 2.0 and Semaphore, where this env var is available.
Also important to notice is that the SEMAPHORE env var that is being checked to determine that Semaphore CI is being used, is also set to true if Semaphore 2.0 is being used.
Activity
Helveg commentedon Nov 14, 2019
Also important to notice is that the
SEMAPHOREenv var that is being checked to determine that Semaphore CI is being used, is also set to true if Semaphore 2.0 is being used.