| Bitbucket is not triggering matching jobs. The log statements in Jenkins are showing
...
Considering candidate job xx-freestyle-triggered-by-bitbucket
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbeConsidering to poke xx-freestyle-triggered-by-bitbucket
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProberepo scheme: ssh
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbeTrying to match ssh://g...@git.mygroup.net:7999/scopecom/ci-test.git<-->https://atc.mygroup.net/scopecom/ci-test
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbexx-freestyle-triggered-by-bitbucket SCM doesnt match remote repo {1}
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbeConsidering candidate job xx-pipeline-triggered-by-bitbucket
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbeConsidering to poke xx-pipeline-triggered-by-bitbucket
...
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProberepo scheme: ssh
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbeTrying to match ssh://g...@git.mygroup.net:7999/scopecom/ci-test.git<-->https://atc.mygroup.net/scopecom/ci-test
Sep 19, 2019 11:31:49 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbexx-pipeline-triggered-by-bitbucket SCM doesnt match remote repo {1}
...
I´ve already merged https://github.com/jenkinsci/bitbucket-plugin/pull/59 - but I still have an issue caused by different hostnames. In our setup we have ssh://git.mygroup.net:7999/../project/repo.git and https://atc.mygroup.net/....project/repo.git The final check is comparing the hostname(s) - and the project/repo paths. I dont know why they decided for different hostnames for the same thing - but I need an "official" solution to be able to use this plugin. One idea could be to add some global configuration, where hostname equivilents may be defined (in a map for example) So I would add there git.mygroup.net == atc.mygroup.net - and the plugin will consider this alternativeNames. |