AWS CodeBuild
User Guide (API Version 2016-10-06)

Background Tasks in Build Environments

You can run background tasks in build environments. To do this, in your build spec, use the nohup command to run a command as a task in the background, even if the build process exits the shell. Use the disown command to forcibly stop a running background task.