should help you out I've fixed the problem by adding sleep 10 before the interact in the expect script. I think the clone process didn't completely finish when the expect script ended and Codebuild continued to run regardless. Adding the pause allows the clone to finish.
This might help you Ok, there is more than one year that the first response was posted on this thread and probably at the time that was the correct answer. But today it not correct anymore. CodeCommit integrates with CloudWatch Events. It can signal an event when: