bitbucket

Call Bitbucket REST API using 2leg oauth token

妖精的绣舞 提交于 2019-12-23 16:34:27
问题 I am trying to call bitbucket's api using 2-legged oauth authentication. I call https://bitbucket.org/!api/1.0/oauth/request_token with my oauth secret and key and get the following: oauth_token_secret=<token_secret>&oauth_token=<token>&oauth_callback_confirmed=true How can I use this to call an api function, such as https://bitbucket.org/api/1.0/user 回答1: After you have received accesstoken & secret, when you send the request add a (Authorization) Header as, Authorization: OAuth oauth

Going back to previous commit in SourceTree

谁说胖子不能爱 提交于 2019-12-23 13:00:58
问题 I am new to Git, and I was trying to revert back to a previous commit in SourceTree. I right clicked on the commit I was going to revert to and then clicked checkout. It gave me a prompt saying that my working copy would become a detached head. What does this mean and is this something I should avoid? 回答1: As Per Git-Tower's Article : What's a "detached HEAD" in Git? Understanding how "checkout" works With the "git checkout" command, you determine which revision of your project you want to

Bitbucket Server Webhook to Jenkins: Error: Jenkins response: No git jobs using repository

≯℡__Kan透↙ 提交于 2019-12-23 07:46:57
问题 I've installed Webhook to Jenkins for Bitbucket plugin in bitbucket server. The main goal is that a jenkins build will be triggered after a commit. After the install I've enabled the plugin: jenkins-url: https://url/jenkins ssh: ssh@git.. (same command is used in SCM plugin jenkins job). The jenkins job works (git clone etc works) but the plugin isn't working. When I click test on the jenkins webhook plugin it shows me: Error: Jenkins response: No git jobs using repository: ssh://git@xx.git t

bitbucket api PostRepositoryHook is not invoked on pull request merged

天涯浪子 提交于 2019-12-23 04:52:07
问题 I am using PostRepositoryHook to develop plugin to listen for all the pushes made by developer. During testing I realized that it does work when I test it using command line to run git push command. However it doesn't work when I do PR and merge my PR. Following are code details. // LoggingPostRepositoryHook.java import com.atlassian.bitbucket.hook.repository.PostRepositoryHook; import com.atlassian.bitbucket.hook.repository.PostRepositoryHookContext; import com.atlassian.bitbucket.hook

Jenkins sending notifications to the wrong commit id

此生再无相见时 提交于 2019-12-23 04:19:05
问题 I have several Jenkins pipelines, all importing a shared library from Bitbucket for some utility methods, and I want to send build status notifications to each project's own Bitbucket repo. I installed the Bitbucket build status notifier plugin, but I'm experiencing a weird behavior: when bitbucketStatusNotify is being called in my pipeline, this happens: Sending build status INPROGRESS for commit <sha> to BitBucket is done! And that would be ok, but <sha> is the commit id of the last commit

How clean git repository with commit which not in work tree

冷暖自知 提交于 2019-12-23 03:28:14
问题 I cleaned the Git repository (Bitbucket cloud) with bfg, but the last commit remained uncleaned (as written in the bfg documentation: By default the BFG doesn't modify the contents of your latest commit on your master (or 'HEAD') branch, even though it will clean all the commits before it.). However, I didn’t see it and wanted to run git gc in a Bitbucket. For this I did " git reset --hard HEAD " and rolled back to it then " git push --force ". But repository size increased?! Now I have this

Bitbucket branch management

ε祈祈猫儿з 提交于 2019-12-23 02:09:13
问题 Is this possible with BitBucket or GitHub to restrict the user for any particular branch except "master"? I only want to share "master" branch with others and develop branch should be keep private with me and my developers. So no one can even "checkout" develop branch if permission is not given. Any possibility? 回答1: You can restrict in "writing" access (push) with BitBucket or GitHub, or with a git server using gitolite . But you cannot restrict in "reading" access: if you can clone part of

Getting an SSL error with Mercurial on Bitbucket due to TLS

江枫思渺然 提交于 2019-12-22 19:33:22
问题 It seems that Bitbucket has now blocked TLS 1.0 and 1.1. I am working in Eclipse on Mac OSx 10.12.6 using the MercurialEclipse (hg) 2.2 plugin. I was receiving SSL handshake errors whenever I tried to pull from the remote Bitbucket repository. I tried updating the plugin and doing a fresh install, but it still gave the same error. Then I tried downloading and installing the latest Mercurial package (4.8) from the mercurial web site. After doing this the error changed to this: warning:

Bitbucket issues section useless when connected to JIRA?

牧云@^-^@ 提交于 2019-12-22 16:02:15
问题 I have connected Bitbucket repo with JIRA project. Now when I commit to Bitbucket, I can reference JIRA issues or I can create branches in Bitbucket repo from JIRA and view commits from JIRA. However, when I create an issue in JIRA or an issue in Bitbucket, they are not being synced. I have not found any tutorial about this. Does this mean that Issues section in Bitbucket is useless when we connect it to JIRA? Is Issues section on Bitbucket only for repos that are not connected to JIRA (and I

Bitbucket issues section useless when connected to JIRA?

孤街醉人 提交于 2019-12-22 16:01:12
问题 I have connected Bitbucket repo with JIRA project. Now when I commit to Bitbucket, I can reference JIRA issues or I can create branches in Bitbucket repo from JIRA and view commits from JIRA. However, when I create an issue in JIRA or an issue in Bitbucket, they are not being synced. I have not found any tutorial about this. Does this mean that Issues section in Bitbucket is useless when we connect it to JIRA? Is Issues section on Bitbucket only for repos that are not connected to JIRA (and I