7 Oct 2013 · Semaphore News · 1 min read

    Post-thread commands

    Contents

    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”.

    Want to discuss this article? Join our Discord.

    mm
    Writen by:
    Star us on GitHub