-
Bug
-
Resolution: Fixed
-
Critical
-
Jenkins 2.138.2
Bitbucket Plugin 1.1.8.
Bitbucket Server 5.13.1.
-
-
1.1.19
Bitbucket Plugin is not triggering matching Jobs.
I have added a FINE log to investigate where it hangs and I followed the source code in Github in paralel to understand the source of the problem.
Looks like the match method in BitbucketJobProbe returns false when it checks the url from my jenkins job with the url from the payload.
Logs:
Considering candidate job trigger-build-branch
Oct 26, 2018 3:15:14 PM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbe
Considering to poke trigger-build-branch
Oct 26, 2018 3:15:14 PM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbe
Trying to match [https://[host]/bitbucket/scm/[project]/[repository].git|https://[host]/scm/[project]/[repository].git]<-->[https://[host]/bitbucket/[project]/[repository|https://[host]/[project]/[repository]]
Oct 26, 2018 3:15:14 PM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbe
trigger-build-branch SCM doesnt match remote repo {1}
There is a check for "/scm" before actually comparing the url but it removes the "/scm" only if it appears at the start. In my case "/scm" is somewhere inside the url.
[https://[host]/bitbucket*/scm*/[project]/[repository].git]
[https://[host]/bitbucket/[project]/[repository|https://[host]/[project]/[repository]]
- blocks
-
JENKINS-49177 Bitbucket Plugin - HTTPS URI not matched when path does not start with "/scm"
- Resolved
- relates to
-
JENKINS-59447 Bitbucket plugin is not triggering the job(s) when ssh and https have different hostnames
- Resolved