bitbucket-push-and-pull-request-plugin icon indicating copy to clipboard operation
bitbucket-push-and-pull-request-plugin copied to clipboard

sendBuildStatusNotification send notification with the wrong commit hash

Open xpicio opened this issue 1 year ago • 1 comments

Hello, i'am using a pipeline created in a shared library stored on a git project. When the pipeline run and try to send the build status to bitbucket it is reference to the right git project but with the wrong commit hash.

Oct 21, 2022 4:08:13 PM INFO org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper sendBuildStatusNotification
This request was sent: {
  "state": "INPROGRESS",
  "key": "a44869eed2820f3016e194742a102d9e",
  "url": "https://jenkins.domain.com/job/acquiring-onboarding-pass-proxy-staging/27/display/redirect",
  "name": "acquiring-onboarding-pass-proxy-staging #27"
}
Oct 21, 2022 4:08:13 PM INFO org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper sendBuildStatusNotification
This response was received: {"type": "error", "error": {"message": "The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated."}}
Oct 21, 2022 4:08:13 PM INFO org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper sendBuildStatusNotification
This request was sent: {
  "state": "INPROGRESS",
  "key": "a44869eed2820f3016e194742a102d9e",
  "url": "https://jenkins.domain.com/job/acquiring-onboarding-pass-proxy-staging/27/display/redirect",
  "name": "acquiring-onboarding-pass-proxy-staging #27"
}
Oct 21, 2022 4:08:13 PM INFO org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper sendBuildStatusNotification
This response was received: {"key": "a44869eed2820f3016e194742a102d9e", "type": "build", "state": "INPROGRESS", "name": "acquiring-onboarding-pass-proxy-staging #27", "refname": null, "commit": {"type": "commit", "hash": "0802dc0cd4d357894d726d040f614caae91ca6b7", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/workspace/pass-proxy/commit/0802dc0cd4d357894d726d040f614caae91ca6b7"}, "html": {"href": "https://bitbucket.org/workspace/pass-proxy/commits/0802dc0cd4d357894d726d040f614caae91ca6b7"}}}, "url": "https://jenkins.domain.com/job/acquiring-onboarding-pass-proxy-staging/27/display/redirect", "repository": {"type": "repository", "full_name": "workspace/pass-proxy", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/workspace/pass-proxy"}, "html": {"href": "https://bitbucket.org/workspace/pass-proxy"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B8c587a4d-8a9d-4292-b2fa-2d9a66fec239%7D?ts=c_sharp"}}, "name": "pass-proxy", "uuid": "{8c587a4d-8a9d-4292-b2fa-2d9a66fec239}"}, "description": "", "created_on": "2022-10-21T16:08:13.417977+00:00", "updated_on": "2022-10-21T16:08:13.417993+00:00", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/workspace/pass-proxy/commit/0802dc0cd4d357894d726d040f614caae91ca6b7/statuses/build/a44869eed2820f3016e194742a102d9e"}, "commit": {"href": "https://api.bitbucket.org/2.0/repositories/workspace/pass-proxy/commit/0802dc0cd4d357894d726d040f614caae91ca6b7"}}}
Oct 21, 2022 4:08:13 PM INFO org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper sendBuildStatusNotification
This request was sent: {
  "state": "INPROGRESS",
  "key": "a44869eed2820f3016e194742a102d9e",
  "url": "https://jenkins.domain.com/job/acquiring-onboarding-pass-proxy-staging/27/display/redirect",
  "name": "acquiring-onboarding-pass-proxy-staging #27"
}
Oct 21, 2022 4:08:13 PM INFO org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper sendBuildStatusNotification
This response was received: {"type": "error", "error": {"message": "The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated."}}

https://api.bitbucket.org/2.0/repositories/workspace/pass-proxy/commit/0802dc0cd4d357894d726d040f614caae91ca6b7

pass-proxy is the project that triggered the pipeline 0802dc0cd4d357894d726d040f614caae91ca6b7 is the last commit of the shared library project

Do you need more info or the log should be enough ?

Thank you, have a nice day 👋

xpicio avatar Oct 21 '22 16:10 xpicio