Jump to content

tat

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by tat

  1. Hi there.

     

    I would like to run the after-checkin trigger script asynchronously.

    I tried to achieve this using the C# Process talked about in the https://forum.plasticscm.com/topic/828-async-script-on-trigger/ topic, but I couldn't!

     

    The code looks like this

    var startInfo = new ProcessStartInfo
    {
        FileName = "sh",
        Arguments = "sleep.sh"
        CreateNoWindow = true,
    };
    Process.Start(startInfo);

    The content of sleep.sh looks like this

    #! /usr/bin/sh
    
    sleep 30
    exit 0

     

    When I do a checkin from the Plastic SCM GUI client, the checkin seems to wait until sleep is over.

    Is there any way to execute the process asynchronously with after-checkin trigger?

     

    Thank you for your time.

×
×
  • Create New...