you can read doc: https://aws.amazon.com/blogs/machine-learning/create-amazon-sagemaker-projects-using-third-party-source-control-and-jenkins/
I added tag sagemaker value True -> connect successfully
You can see the instructions in the image below.