bitbucket-server

Trigger jenkins build on stash pull request

旧时模样 提交于 2019-12-13 00:14:59
问题 I've been trying to get the build on PR working for some time now following the usual guides. However i ran into some issues. Here is what i added to the previously existing configuration @ Jenkins project: Source Code Management: Multiple SCMs - Repository URL: ssh://git@git.company.pt/projectCode/RepName.git - Credentials with ssh key working - Batches to build: */${sourceBranch} - Repository browser: auto - Additional Behaviours: none Build triggers: - Poll SCM And the the previous working

Team Foundation Server 2015 vs. Bitbucket Server (Stash)

扶醉桌前 提交于 2019-12-12 18:29:58
问题 I am trying to compare two solutions. TFS Server 2015 and Bitbucket Server. I assume, that I will host GIT repositories and for project management I have other tools. What is the advantage in using TFS comparing to Atlassian solutions? Is there a place where I can find list of functionalties, implemented or scheduled in both tools development? And is this post actual: http://blogs.msdn.com/b/visualstudioalm/archive/2015/08/27/git-experience-futures.aspx?CommentPosted=true&PageIndex=3#comments

Bitbucket groovy conditional script

半腔热情 提交于 2019-12-11 18:06:29
问题 Team - I like to enable one condition to restrict pull request in bitbucket. Condition - The feature branch should always merge into develop and pre-prod branch before raise pull request to release. If condition fails then it shouldn't allow user to raise pull request. We are new to bitbucket and groovy. Hence, like to know where and how can we achieve this task using script runner in bitbucket. Appreciate any help. Thanks 来源: https://stackoverflow.com/questions/54788007/bitbucket-groovy

Java Client to Connect to Stash Repository

房东的猫 提交于 2019-12-11 10:26:04
问题 I am trying to programatically connect to a STASH repository from a Java class. I have had a look and I cannot find any Java clients to do this. Has anyone come across any? The reason I want to connect to a STASH repository is that I am writing a Maven plugin that will go to a Git repository in STASH and return a list of commits and then Jiras for a given tag. Any help would be greatly appreciated. 回答1: (Consolidating two answers given in comments as a Community Wiki answer) First of all,

How to prevent git commit if specific phrase in changes is detected?

大憨熊 提交于 2019-12-11 03:05:29
问题 I noticed some patterns, that developers tend to do - like committing javascript tests with fdescribe or fit left in them (which means only one test/suite will be running), usually that is found in review phase, but it would be nice to catch those small things earlier. Wondering if there is a way to configure git to prevent commit if some pattern is detected within the changes? 回答1: That's a classical job for git commit hooks ( man githooks ); for example, from the standard script samples

Git delete branch without cloning?

 ̄綄美尐妖づ 提交于 2019-12-10 17:21:15
问题 Is there a way to delete a branch from a Git repository without doing a clone or any other sort of local copy? Basically I'm working on a dashboard for a release pipeline and don't want to have to have any of the working project's code on the dashboards server just to delete deployed feature branches. In case it matters, we use Atlassian Stash and not Github. I'm looking to do something similar to: git branch -D ssh://git@repository.com/team/project/feature/deleteme 回答1: Easy, from any git

stash Pull Request Builder Plugin

时光总嘲笑我的痴心妄想 提交于 2019-12-10 15:56:42
问题 Has any one used stash builder plugin.Its documentation says that it adds some environment variables in to the build environment but if i echo them,they all are empty echo "${sourceBranch}" echo "${targetBranch}" echo "${sourceRepositoryOwner}" echo "${sourceRepositoryName}" echo "${pullRequestId}" echo "${destinationRepositoryOwner}" echo "${destinationReposotryName}" echo "${pullRequestTitle}" echo "${sourceCommitHash}" This plugin is doing nothing for me.Here is my configuration I am

Stop mvn release triggering repeat Jenkins builds

六眼飞鱼酱① 提交于 2019-12-10 14:32:31
问题 [Releasing via the maven-release-plugin, Git repos hosted on Atlassian Stash which triggers build pipeline in Jenkins.] Is there a way to stop the release triggering a new run of the pipeline? This occurs because the released pom files are committed back to Stash. Given a build has just occurred (to get to the release job) this is entirely unnecessary as all that has changed from the last build is pom file version numbers. 回答1: Jenkins git plugin can be configured to ignore certain commit

Notify build status from Jenkins to Bitbucket Server

一笑奈何 提交于 2019-12-06 23:49:09
问题 We have installed Jenkins v2.7.3 and Bitbucket Server v4.9.1 on premise and would like to send build status as notifications from Jenkins to Bitbucket Server. So far I have only found solutions (1 and 2) for Bitbucket Cloud, but nothing for Bitbucket Server. Any tip on how to make this happen? https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Cloud+Build+Status+Notifier+Plugin https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+OAuth+Plugin 回答1: You might get some use out of the stash

Getting SSL error when attempting to clone a Stash repository

血红的双手。 提交于 2019-12-06 12:00:26
问题 I'm attempting to clone a git repository hosted in Stash, but having no luck. I get the following error: fatal: unable to access 'https://xxx@stash.xxx.com/scm/yyy/yyy.git/': SSL certificate problem: Invalid certificate chain I confirmed that I have access to the repository by logging into Stash and viewing it through my browser. I also loaded the private key for that repository using ssh-add . 回答1: Solved it! (With a little help from this question, but a slightly different solution.) Browse