Just started with Jenkins and I can't seem to get how to properly configure SCM for pipelines since there's no SCM config tab there. I've added a webhook to my gitlab project, with URL
http://my-jenkins-server.com/git/notifyCommit?url=https://my-gitlab-server.com/my-repo.git
But when I visit that URL, Jenkins tells me
No Git consumers using SCM API plugin for: https://my-gitlab-server.com/my-repo.git
which sort of makes sense because I haven't explicitly told Jenkins that my pipeline is tied to this repo, just implicitly in the Jenkins script:
stage('Build'){
git url: 'https://my-gitlab-server.com/my-repo.git', branch: 'master', credentialsId: '<some-hash>'
sh 'cd linux-native; make clean all'
}
So how do I tell Jenkins that a PIPELINE is tied to a specific repo? Alternatively, how do I find the proper notifyCommit url for my pipeline?