FAQ Database Discussion Community


How to 'pipe' password to remote.update() with gitPython

python,git,python-3.4,atlassian-stash,gitpython
I am trying to write a script (probably python) that needs to fetch a remote repo (housed with Stash via git), and checkout a specific commit (based on the hash). The problem is that this needs to happen 'blindly' to the user, but it pauses for a password. I need...

Building a specific project within the master branch using Jenkins

git,maven,svn,jenkins,atlassian-stash
In SVN, multiple projects are organized under "trunk". During migration, these projects ended up under "Master" in Stash. I have to configure Jenkins to build one of these projects within master. The Git plugin for Jenkins requests the Repo URL along with an optional branch name. However, this doesn't apply...

Stash Git error “fatal: remote error: CAPTCHA required”

git,atlassian-stash
Attempting to pull from my Stash project, using the following commands: $ git remote add origin https://[email protected]/scm/~username/project.git $ git pull origin develop I'm prompted for my password, which I enter and then get the following error: Your Stash account has been marked as requiring a CAPTCHA to be solved before...

Getting a list of files that were committed on a specific branch (git / Atlassian Stash)

git,atlassian-stash
How can I get a list of files (or commits) that were committed on a specific branch (where the branch is already deleted)? For example, I create TEST-123 feature branch from master, do a few commits to it, push to my central repo, and merge back to master via a...

Atlassian Stash - Permission Denied (publickey)

git,ssh,ssh-keys,atlassian-stash
I'm actually in the process of setting Atlassian Stash for my Workplace. I've ran into this issue which I'm not able to fix. Note, this is running on a Windows 7 64bits installation. When setting the SSH Keys, I followed the Stash Guide on how to create them and set...

How to list merge conflicts on origin that are not on local?

git,git-merge,merge-conflict-resolution,atlassian-stash
Stash is rejecting my pull request due to merge conflicts. So I create a merge branch, merge destination into the merge branch, (there's nothing to commit), push anyway and open the pull request again. Still rejected for conflicts. I've deleted and recreated 3 times, and getting the same results each...

If I'm using Atlassian Stash, can the git repo still be managed without using Stash?

git,atlassian-stash
I want to know if at some point, we decide to stop using Atlassian Stash, is it going to be possible to still access our git repos or will we be out of luck?

Where are commit messages stored in Atlassian Stash

git,sdk,atlassian-stash
I am trying to write a plugin for Atlassian Stash. I have downloaded the SDK, and I have access to the database we use for Stash, but I am unable to find a table that has a column for commit messages. I assume that they aren't deriving that from the...

how to get a list of commits from refChanges in Atlassian Stash Pre Receive Repository Hook

atlassian-stash,atlassian-plugin-sdk
Im trying to write a stash plugin that will iterate through the commits in a change set pushed to stash in a Pre Receive Repository Hook. The API passes a Collection of refChange in the onReceive method. public boolean onReceive(RepositoryHookContext context, Collection<RefChange> refChanges, HookResponse hookResponse) if I make 3 commits...

Stash: is it possible to prevent direct pushes to repository?

git,atlassian-stash
We are using Atlassian Stash Git repository. We want all the team members to be able to approve pull requests to repository or some branches, but we want only several members or no one to be able to commit to repository without pull request. Also we would like to prevent...

Jenkins CI Post-build Actions - How to push to Stash

git,github,jenkins,atlassian-stash
I have Jenkins set up to monitor a private GitHub repo and currently is performing builds when I commit to GitHub using the GitHub Hook. Is it possible to set up an action to then push the same code to a Stash repo using 'Post-build Actions'? So just to clarify,...

Have JIRA send mails to watchers on commit from Stash on a ticket

git,email,jira,atlassian-stash
Our workflow is as follows: Someone opens ticket in JIRA (ABC-123) Developer commits with commit message ("Do the thing, relates to ABC-123") Developer pushes to Stash server Commit will show on JIRA (and when viewed on Stash, ticket will linked to JIRA). Note: I'm not sure if the above workflow...

Capistrano unable to pull a Stash repository using SSH

git,ssh,capistrano,capistrano3,atlassian-stash
I followed the following procedure: Created an SSH key; Enabled SSH in Atlassian Stash; Added SSH key for the Stash account called Capistrano (already used by Capistrano to successfully connect using username and password to Stash) Tested the SSH connection using the command git clone ssh://[email protected]:7999/project/repository.git and the repository is...

Failure to find com.atlassian.stash:stash-parent:pom:5.0.18

maven,atlassian,atlassian-stash
After working on jira and confluence, now working on stash. As per stash documentation i have created stash plugin but unable to convert eclipse compatible and running stash instance. pom.xml:- <?xml version="1.0" encoding="UTF-8"?> http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.stash</groupId> <artifactId>stash-hook</artifactId> <version>1.0-SNAPSHOT</version> <organization> <name>Example Company</name>...

local atlassian stash server error debugging plugin

githooks,atlassian-stash
Im trying to setup a dev environment to create a git hook plugin for Atlassian stash server. When I run atlas-debug to start the web server then browse to localhost:port The Stash home page doesn't display and I get this error in the console... [INFO] [talledLocalContainer] 2015-03-10 21:09:51,279 WARN [threadpool:thread-15]...