[JIRA] (JENKINS-59447) Bitbucket plugin is not triggering the job(s) when ssh and https have different hostnames

1 view
Skip to first unread message

info@torstenreinhard.de (JIRA)

unread,
Sep 19, 2019, 9:59:02 AM9/19/19
to jenkinsc...@googlegroups.com
Torsten Reinhard created an issue
 
Jenkins / New Feature JENKINS-59447
Bitbucket plugin is not triggering the job(s) when ssh and https have different hostnames
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: bitbucket-plugin
Created: 2019-09-19 13:58
Environment: Jenkins-2.176.3
Bitbucket Plugin 1.1.11 (latest)
Bitbucket Server 5.8.2
Priority: Minor Minor
Reporter: Torsten Reinhard

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

info@torstenreinhard.de (JIRA)

unread,
Sep 19, 2019, 10:51:03 AM9/19/19
to jenkinsc...@googlegroups.com
Torsten Reinhard updated an issue
Change By: Torsten Reinhard
+Bitbucket is not triggering matching jobs.+

The log statements in Jenkins are showing
this after pushing to ci-test.git Repo:
{code:java}

...
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}
...{code}

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


The final check is comparing the hostname(s) - and the project/repo paths.

I dont know why they the Bitbucket team 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
Another idea would be to add a checkbox like "ignore hostname, compare project/repo only".

The
plugin will should consider this alternativeNames alternatives - and perform the comparison accordingly .
Reply all
Reply to author
Forward
0 new messages