You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
The REST API used to query the build status for a commit requires a key
Ref : https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-rest.html
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds?key
parameter | value | description |
key | the key of the build status |
From what I understand the key is used while setting the build status and the same needs to be used while fetching it.
How do we find out what key was used while setting.
We are using https://plugins.jenkins.io/stashNotifier/ plugin to send the status
Using the following API call.
step([$class: 'StashNotifier',
commitSha1: "${env.commit}", // jenkins parameter that resolves to commit's hash
credentialsId: '841769bd-6936-4c5e-aa77-5214885738e0',
disableInprogressNotification: false,
ignoreUnverifiedSSLPeer: true,
includeBuildNumberInKey: false,
prependParentProjectKey: true,
projectKey: '',
stashServerBaseUrl: 'https://alm.radisys.com/bitbucket'
])
stashNotifier doesn’t seem to have an option to set the key from user.
If you could also please help me with what is the default key for the status publisher in bitbucket from stash notifier plugin,