🚀  Our new eBook is out – “CI/CD for Monorepos.” Learn how to effectively build, test, and deploy code with monorepos. Download now →

Post-thread commands

We’ve rolled out a new feature that lets you run commands at the end of each thread, regardless of whether build commands passed or failed.

Post-thread command on Semaphore

To set it up simply set a command to “Post-thread” in your project’s build settings.

This is great when you need to, for example, upload assets to S3 or tail the test.log when you’re not sure why a certain spec or scenario failed.

There is also a new environment variable available to these commands: SEMAPHORE_THREAD_RESULT. It can hold the value of either “passed” or “failed”.

Have a comment? Join the discussion on the forum