Skip to main content
1-Visitor
February 12, 2015
Question

Script that ckecks-in automatically when changes are detected.

  • February 12, 2015
  • 1 reply
  • 889 views

Hi, guys

We would like to create a script that is able to detect the sandbox changes compared with the PTC project in order to automatically check-in the changes into the PTC project.

All changes should be detected (e.g: add, drop, modify, moved files etc.). Does somebody have such a tool or an idea of how to implement such a script? (What commands sequence is needed for this kind of behavior?)

Thanks in advance.

    1 reply

    16-Pearl
    February 12, 2015

    You could use the "si viewnonmembers" command to detect new files and the "si viewsandbox" command together with filters ( e.g. "--filter=changed:working" ) to identifiy the files of interest and handle these as you please using other CLI commands.

    I'd recomment to do this outside the server e.g. on a separate machine (Jenkins) and not insoide a server trigger script.