bitbucket-server

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 : Is there a Jenkins Variable to get user name who did last commit in stash

假装没事ソ 提交于 2019-12-23 04:46:05
问题 I got a task to run jenkins job for every commit in stash. And in email body I need to mentioned the user name who last pushed code in to stash. Is there any Jenkins Variable to get user name who did last commit in stash 回答1: You should look at Email-ext plugin . It provides a ton a features and control over the email, including what you are asking. In particular, to display just the name of the user who committed a change, use: ${CHANGES, format="%a"} 来源: https://stackoverflow.com/questions

Pull request using Stash rest api

只谈情不闲聊 提交于 2019-12-23 04:39:08
问题 I am trying to create pull request using rest API. I went through the documentaion . I am doing a post request as mentioned in the doc with below json { "title": "blah blah", "description": "blah blah", "state": "OPEN", "open": true, "closed": false, "fromRef": { "id": "feature/test1", "repository": { "slug": "test-repo", "name": null, "project": { "key": "PR" } } }, "toRef": { "id": "refs/heads/master", "repository": { "slug": "test-repo", "name": null, "project": { "key": "PR" } } },

Duplicate builds triggered on Jenkins multibranch pipeline

喜夏-厌秋 提交于 2019-12-21 12:42:39
问题 We are seeing duplicate builds triggered on Jenkins multibranch pipeline projects. Builds are normally triggered using push notifications from Bitbucket using this plugin: https://marketplace.atlassian.com/plugins/com.nerdwin15.stash-stash-webhook-jenkins/server/overview However, we are now seeing 'double' builds for some reason. If you look at the 2 builds that are triggered, one is triggered by a 'commit notification', and the other is triggered by 'Branch Indexing'. What is causing the

Jira: assign an existing git branch to an issue

蹲街弑〆低调 提交于 2019-12-20 10:26:51
问题 In JIRA connected with STASH you can create a feature branch for an issue using the button 'create branch'. (That is nice to track the commits in this issue.) If a developer started working but did not know that there is such an issue he did not click the 'create branch'. Is there any possibility to assign an existing git branch to an issue? 回答1: ex-Stash developer here. Yes and no. Creating the branch though the UI is just a convenience. The important thing is that the name contains the JIRA

Extension for Visual studio unknown error - unable to push or fetch anything

偶尔善良 提交于 2019-12-20 09:47:10
问题 I have an error when I try to push anything to my bitbucket repository via Git extension for visual studio: Error encountered while pushing branch to the remote repository: Git failed with a fatal error. HttpRequestException encountered. An error occurred while sending the request. cannot spawn /C/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory

SourceTree and Stash: Unable to get local issuer certificate

为君一笑 提交于 2019-12-20 09:45:39
问题 We have Atlassian Stash installed on a Windows 2008R2 server, and for the most part everything is working nicely. We have an SSL certificate issued by our local on-premise CA and a DNS entry set up so we can go to https://stash/ and it works quite nicely, except in Firefox where it throws a warning (related?). When using Atlassian's Sourcetree we can navigate and choose a repository, but when we try to clone it we get the following error: fatal: unable to access https://user@url/scm/etc/etc

Git clone error “HTTP code 504 from proxy after CONNECT”

孤街浪徒 提交于 2019-12-18 17:34:36
问题 I'm working in a office behind a corporate firewall. My System is windows7, using componentes consola. Usually I need to set up proxy connections to get GIT working with github. But when I try to clone a repository sored in a private Stash (Atlassian) I get this error: Cloning into 'apptest'... fatal: unable to access 'https://xxx@xxx.xx.xx.xx:xxxx/apptest/apptest.git /': Received HTTP code 504 from proxy after CONNECT I have unsetted git proxy but I'm still facing same problem. Please note

Free GIT Server with Web GUI a la BitBucket/GitHub [closed]

我是研究僧i 提交于 2019-12-17 06:57:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . At work I am working with BitBucket. I want something like that for at home to deploy on my Linux Server. So I am looking for: Only 1 or 2 users needed. An GIT Server deployable on Linux A Fancy Web GUI to visualize branches and do other operations (creating repos, branches, merging, statistics). Well documented

How to use Stash as a Maven remote repository for a Gradle project?

吃可爱长大的小学妹 提交于 2019-12-13 21:35:35
问题 How can I reference a custom remote Maven repository which is hosted on Stash (aka. Bitbucket Server)? Here is what I tried in the root build.gradle : allprojects { repositories { jcenter() maven { // This Stash path does not work url "https://stash.company.lan/projects/AP/repos/internal-repository" } maven { // This GitHub path works fine url "https://github.com/user/mvn-repo/tree/master" } } } I cannot figure out the correct path to the raw folder structure for Stash so Gradle understands.