Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,900
Community Members
 
Community Events
176
Community Groups

Need details on the key that is published to bibtucket from jenkins stash notifier plugin.

Edited

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

request query parameters

parameter

value

     description

key

string

     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, 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events