youngmon/atlassian-qna huggingface dataset:
Bitbucket Pipeline - how to disable merge of PR branch into source branch during pipeline run?
Asked by vitalii_motolyzhenko:

I have RP into develop branch and its pipeline fails due to merge conflict with develop branch, but PR branch is build successfully.  

Such behaviour creates a lot of interrupts because each time i have conflict i need to rebase/merge develop branch each time. But i don't want to do it before i am ready to merge my branch into develop. Also another situation when someone merged failing tests/code into develop and it just fails my build because it performs merge...  

**Is there option to disable this?**   

Here build output:

GIT_LFS_SKIP_SMUDGE=1 retry 6  
git clone --branch="GNG-27214-apache-config-2" https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR  
Cloning into '/opt/atlassian/pipelines/agent/build'...  
....  
git reset --hard 75bc588d7b9d HEAD is now at 75bc588d7b9 GNG-27214: fix  
git config user.name bitbucket-pipelines  
git config user.email commits-noreply@bitbucket.org  
git config push.default current  
git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy <http://localhost:29418/>  
git remote set-url origin <http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME>  
git reflog expire --expire=all --all echo ".bitbucket/pipelines/generated" \>\> .git/info/exclude  
CONFLICT_EXIT_CODE=3  
git merge ae6870301591 --no-edit \|\| exit $CONFLICT_EXIT_CODE


Answers:
author: Theodora Boudale
body: Hi Vitalii and welcome to the community!

This is standard behavior for pipelines running on a **pull-requests** definition and it is not possible to disable it:

* <https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Pull-Requests>

It allows users to run pipelines builds on the merged code before actually merging the PR.

If you don't want to run builds on the merged code, you can use:

* **branches** pipelines, that run on the source code of a specific branch when new commits are pushed to this branch  

  <https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Branches>  

* or **custom** pipelines, that don't run automatically, but you can manually trigger them on a certain branch  

  <https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Custom--manual--pipelines>

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
git push origin $BITBUCKET_BRANCH Permission denied (publickey). fatal: Could not read from remote r
Asked by godwin.jose:

We were trying to push our code to the mirror repository. We were using it for two and half years to take a backup of our code into a AWS Code Commit via Bitbucket pipelines but all of a sudden, we were receiving these errors for last one month

I have tried linking the private ssh key to the repository

We tried checking our connection it is showing connected but we can commit the code but not able to the mirror repo (AWS Code Commit) and the pipeline is getting failed

git push origin $BITBUCKET_BRANCH1s  
+ git push origin $BITBUCKET_BRANCH  
Permission denied (public key).  
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights  
and the repository exists.


Answers:
author: Syahrul
body: G'day, [@godwin.jose](/t5/user/viewprofilepage/user-id/5557094)

Welcome to the community!

I can see that you have a paid workspace. Could you please create a support ticket in our [Support portal](https://support.atlassian.com/contact/) so we can investigate the issue further?

Thanks!  
Syahrul


Tags: bitbucket-cloud

cloud
How to copy pipeline assets using atlassian/ssh-run:0.2.2
Asked by Tsega:

I'm using a Bitbucket Pipeline to deploy to a cPanel account using SSH.  

I have an initial build step that generates a \`dist\` folder with files.

Once I SSH into the cPanel account, I need to know how to copy the generated asset (\`dist\` folder) to a specific location in the remote server.


Answers:
author: Ben
body: Hi Tsega,

I'd suggest using either the scp-deploy pipe or rsync-deploy pipe instead to copy these files to your server over SSH - as these are designed for deploying files over SSH/SSL:

* <https://bitbucket.org/atlassian/scp-deploy/src/master/>
* <https://bitbucket.org/atlassian/rsync-deploy/src/master/>

Documentation for the usage of the pipe can be found in the above links.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Tsega
body: Thanks [@Ben](/t5/user/viewprofilepage/user-id/4537226) I ended up using [scp-deploy](https://bitbucket.org/atlassian/scp-deploy/src/master/) as suggested by you and it worked great.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipes

ssh
Database migration fails from hsql to SQLServer 2012
Asked by C L:

Hi All,

I'm having trouble migrating to SQLServer 2012 database. I created a new database and crucible is able to connect but every time i try to "Save \& Migrate" it is failing on create tables script C:\\Atlassian\\fecru-4.7.0\\sql\\SQLSERVER2008\\schema\\tables_107.sql.

I have already made sure that my database uses collation set as Latin1_General_CS_AS and enabled snapshot mode by running

ALTER DATABASE crucible  
SET READ_COMMITTED_SNAPSHOT ON;

I have tried to setup crucible fresh again and do the database migration step first before setting other settings but it is still failing on line "problem with create tables script". I don't know what else I can try to resolve this. This is the log:

Started  
Starting ActiveObjects backup...  
\* Backing up Database Information  
\* Backing up Table Definitions  
\*\* Table count: 9  
\* Backing up Tables  
\*\* Backing up 'AO_2913F5_COMMENT_ISSUE'  
\*\* Backing up 'AO_38321B_CUSTOM_CONTENT_LINK'  
\*\* Backing up 'AO_4789DD_HEALTH_CHECK_STATUS'  
\*\* Backing up 'AO_4789DD_PROPERTIES'  
\*\* Backing up 'AO_4789DD_READ_NOTIFICATIONS'  
\*\* Backing up 'AO_4789DD_TASK_MONITOR'  
\*\* Backing up 'AO_8219D4_COMMIT_HOOK_CONFIG'  
\*\* Backing up 'AO_A0B856_WEB_HOOK_LISTENER_AO'  
\*\* Backing up 'AO_B434B9_WEB_HOOK'  
ActiveObjects backup completed!  
Creating table definitions...  
Problem with create tables script C:\\Atlassian\\fecru-4.7.0\\sql\\SQLSERVER2008\\schema\\tables_107.sql  
Database migration failed: com.cenqua.crucible.hibernate.CruDBException: Problem with create tables script C:\\Atlassian\\fecru-4.7.0\\sql\\SQLSERVER2008\\schema\\tables_107.sql


Answers:
author: C L
body: I found out the root cause was due to the permissions to the database. Setting the database user account permissions user mapping to db_owner and server role to bulkadmin resolved this issue.
crucible healthcheck monitoring URL
Asked by Arcesium LLC:

Is there a way to get crucible healthcheck monitoring URL .

My requirement is to add http crucible monitoring in datadog,any help is highly appreciated.I did check for official documentation and few other posts but nothing was of help.

I also checked for available rest apis for crucible but couldn't find any leads on the same.

Thanks,

Sampath


Answers:
author: Daniel Eads
body: Hey Sampath,

There's no specific healthcheck URL for Fisheye/crucible. My suggestion would be taking a peek at the [shared APIs](https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html) and perhaps using **/rest-service-fecru/server-v1** as the check URL. If the test is running unauthenticated, the URL will return a 401.

It looks like [DataDog's HTTP check](https://docs.datadoghq.com/integrations/http_check/) can pass a username/password in through basic auth while doing a check. If you supply it with a Fisheye/Crucible user, you can get some details back on that endpoint that can be used in a check:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/59926iF87E9ABE45D6E806/image-dimensions/603x249?v=v2 "image.png")While this isn't a /status endpoint like you might be looking for, it can definitely be used for an up/down check.

Cheers,  
Daniel


Tags: fisheye-crucible-administration
Fisheye/Crucible Application Link Assistance
Asked by Patrick Peace:

Good Afternoon Everyone,

TLDR:

Setting up FIsheye/Crucible server and having issues fining documentation on which Atlassian products it should be connected to.

Currently has app links to Jira and Bitbucket, but should it connect to Confluence and Bamboo too.

Any advice or links to documentation would be greatly appreciated.

Issue:

I am currently working on a project to build out a new Fisheye/Crucible server and I am having some issues finding some of the information I need regrading application links.

I read though and followed the guides below for setting up Fisheye/Crucible app links.

<https://confluence.atlassian.com/fisheye/linking-to-another-application-960155619.html>

I am not having any technical issues but more having an issue understanding which Atlassian products Fisheye/Crucible should connect to.

I currently have connected Fisheye/Crucible to Jira and Bitbucket as code review will need access to these to pull code and create tickets for tracking work, but I am not sure if I should or if there is any benefit to connecting Fisheye/Crucible to Confluence or Bamboo.

Any links to documentation or advice would be greatly appreciated.


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: I would recommend starting with the [Atlassian Git Tutorials](https://www.atlassian.com/git/tutorials). You can use Crucible for code review of Bitbucket/Git repos, but I believe you will have mixed success at best.

Fisheye/Crucible are intended to be used in the centralized version control paradigm. When you connect it to Subversion, Perforce or other version control systems, it scans the changesets and makes them available for "traditional" code review. You select which code you want reviewed, create a review, assign reviewers and complete the review.

Git/Bitbucket/Github/Gitlab, etc don't work at their best in this paradigm. Git has a built in method of managing code reviews. It's called a "pull request." When you want to make a change, you create a branch. You commit against this branch and then merge. During the merge, there is a gate that doesn't allow the merge without an approval. This is the point at which code review occurs. The tutorial explains this is great detail, so that should help you understand the concepts better. I would recommend using pull requests with Git and not Crucible. Crucible will work well with your other non-git source control systems.

comments: author: Patrick Peace
body: Thank you Dave,

Sorry for the slow response.


Tags: confluence-server

jira-server

server
Unknown lifecycle phase "${mavenPluginName}=$mavenPluginName" Error while developing crucible plugin
Asked by Gaurav Tomar:

We are trying to create a plugin for the crucible. This plugin enables every comment to be marked as a defect.

After running atlas-create-crowd-plugin-module i ran this "atlas-mvn package" and getting below error:

Unknown lifecycle phase "${mavenPluginName}=$mavenPluginName". You must specify a valid lifecycle phase or a goal in the format \<plugin-prefix\>:\<goal\> or \<plugin-group-id\>:\<plugin-artifact-id\>\[:\<plugin-version\>\]:\<goal\>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -\> \[Help 1\].  

I am new to plugin development. Any help would be appreciated.


Answers:
author: Roshan Deshmukh
body: I think this is helpful for your problem:  
\* go to atlassian-plugin-sdk -\> bin-\>atlas-mvn.bat file.  
\* replace **call set MVN_COMMAND=%%MVN_COMMAND:${mavenPluginName}=%MVN_PLUGIN%%%** to **call set MVN_COMMAND=%%MVN_COMMAND:%%**

comments: author: RJ Bates
body: this worked for me Thanks!


author: george jiang
body: thanks?also worked for me


author: yogesh pitale
body: Worked for me too!


author: Shiran Vatury
body: thanks, mate


author: PAC IT Licensing
body: This is resolved in another answer, please refer to see two changes that needs to be

<https://community.atlassian.com/t5/Jira-questions/Unknown-lifecycle-phase-error/qaq-p/1006922>

If this resolve your issue, please accept this answer

comments: author: Derek White
body: [@Gaurav Tomar](/t5/user/viewprofilepage/user-id/1334214)Please NEVER accept this answer. The only acceptable answer is for Atlassian to fix their product that has been broken for over 2 years.

Please vote for, watch, and comment on <https://ecosystem.atlassian.net/browse/ATLASSDK-93>


author: Joyce Kristine
body: The above-mentioned issue has been marked as resolved, but still occurs on latest 8.0.16 release.

<https://ecosystem.atlassian.net/browse/ATLASSDK-179> issue marks it as resolved and will be released on 8.0.17.
I think I deleted the admin account
Asked by System Administrator:

I've been trying to figure out LDAP this morning and getting everything working as Read Only with Local Groups. It's struggle, what with the instructions being on pages full of links to pages full of links to...

I seem to have it working but in the process I removed a local group I thought I didn't need and now I appear to have no admin account. Can I fix it? I can log in with my AD access but no-one with an AD login has admin rights.


Answers:
author: System Administrator
body: :)

<https://confluence.atlassian.com/fisheye/how-to-reset-the-administration-page-password-in-fisheye-or-crucible-960155804.html>

Follow the instructions carefully. You need to find the right config.xml and go to the right login page, then you can make sure the admin account has admin access again. Reset the admin password again when you're done.
unable to connect to SVN repository via file:///
Asked by Rusty Rusty:

In attempting to migrate fisheye to a new host I receive errors similar to the following for each of the repositories defined within fisheye. This is fisheye 4.5.3 on CentOS7. I had originally attempted 4.7.0, received the same errors and reverted to 4.5.3 to match the old server.

Repository paused due to error com.cenqua.fisheye.config.ConfigException: Could not access file:///sprj/svn1/bsi/ : java.lang.IllegalStateException: Can't overwrite cause with org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' svn: E180001: Unable to connect to a repository at URL 'file:///sprj/svn1/bsi' svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' com.cenqua.fisheye.rep.RepositoryClientException: java.lang.IllegalStateException: Can't overwrite cause with org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' svn: E180001: Unable to connect to a repository at URL 'file:///sprj/svn1/bsi' svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' java.lang.IllegalStateException: Can't overwrite cause with org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' svn: E180001: Unable to connect to a repository at URL 'file:///sprj/svn1/bsi' svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' org.apache.subversion.javahl.ClientException: svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi' svn: E180001: Unable to connect to a repository at URL 'file:///sprj/svn1/bsi' svn: E180001: Unable to open repository 'file:///sprj/svn1/bsi'


Answers:
author: Rusty Rusty
body: Is there a particular port that needs to be open to allow access via the file:/// URI?


Tags: svn
Code Review not showing preview
Asked by Jacob Polacek:

Usually upon clicking a file that was added through "Add Content" within a code review, you are able to see the source code and there is a line saying "Add a file comment. *Click on source lines to add an inline comment.*" The issue I'm running into is that I only see "Add a file comment." followed by a box that says "New Version" and contains a link that says "Download revision \<Change List Number\>" instead of the source code.

So far, I have tried removing all of the files, adding different revisions, and downloading the revision.

The only thing I can think of is that the files are not supported (is that possible?) because the file icons are different in the ones I can view compared to the ones that I cannot view. The files are .cs, .csproj, .pdf, .nunit, and .sln if that makes anything clearer.

Does anyone know why this is happening/how to fix it so the files are visible?


Answers:
author: Rich Blunt
body: We are having the same issue, Crucible is hooked up to Github, can view all the info but the code view won't display.
Can crucible show git submodule changes?
Asked by Sandy Martel:

We are on crucible 4.4 and submodule changes do not show up the the reviews, they do show up in the bitbucket pull request.


Answers:
author: Mark de Bont [Terberg]
body: Any update? Same issue here...

comments: author: Mark de Bont [Terberg]
body: Apparently not: [FE-3828 - Add support for indexing git submodules](https://jira.atlassian.com/browse/FE-3828)
SVN repository and Tortoise SVN server are on server Where to install Crucible and FishEye?
Asked by Mechi Fendel:

We will be 5 users using FishEye and Crucible.

They will be connected to our SVN repository which is on the company's server.

Where should FishEye/Crucible be installed? On each individual computer, linking to the server, or on the server and then each user runs it on their PC with link to installation on Server?

Thanks,

Mechi


Answers:
author: Marek Parfianowicz
body: Fisheye \& Crucible are web applications, so install them on your server (preferably the same where you host your SVN repositories in order to have fast access to them by Fisheye). Users will access Fisheye \& Crucible via web browser.
search by jiraKey in fisheye
Asked by TonyRietwyk:

We have fisheye linked to jira. When I search for revisions in fisheye, it shows me the jira link in the comment. How do I return the jiraKey as a separate field in the query?


Answers:
author: Marek Parfianowicz
body: There is no possibility to return Jira issue key from a search in a separate field (neither advanced search nor EyeQL search).

However, if what you need exactly is a list of commits related with a Jira issue, you can try to use undocumented REST API (it's an API used by Jira 'development panel' to obtain list of commits and branches from Fisheye):

http://localhost:8060/fecru/rest/remote-link-aggregation/latest/aggregation?globalId=\<issue key\>
Trying to upgrade to SourceTree 3.4.12; getting error
Asked by Greg Davis:

I use SourceTree v3.4.9.0 for Windows. I tried to upgrade to v3.4.12 using Tools \> Options \> Updates \> Update button. When I try, I get this error message:

"**Error**   
There was an error during the update process.

*** ** * ** ***

Method not found: 'Void  
SharpCompress.Readers.lReaderExtensions.WriteEntryToFile  
(SharpCompress.Readers.lReader, System.String,  
SharpCompress.Readers.ExtractionOptions)'.

*** ** * ** ***

\[Copy to Clipboard\]  
\[Cancel\]"

When I click \[Cancel\], I am returned to the Updates window and I see a green checkmark.

Does anyone know what this error means?


Answers:
author: Greg Davis
body: I reinstalled SourceTree from a [direct download link](https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.4.10.exe) I had found for 3.4.10. It was in this post:

*** ** * ** ***

[Vipin Yadav](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4426727)  
ATLASSIAN TEAM
[Oct 19, 2022](https://community.atlassian.com/t5/Sourcetree-questions/Re-sourcetree-app-can-t-update/qaq-p/2167337/comment-id/42396#M42396)  
We have fixed the issue and will be applicable into next release as it was already shipped into previous version. So for workaround please update(reinstall) the sourcetree directly from this link.

Link: \[<https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.4.10.exe>\]

Thanks,

Vipin

*** ** * ** ***

I then updated the app to 3.4.12. It now works.


Tags: error

upgrade

windows
OAuth Token needs refreshed every day?
Asked by euan brown:

When using source tree linked with bitbucket cloud I have to refresh the OAuth token every day? Is this normal? Is it for maximum security?

It is very boring having to go into Tools-Options-Authentication-Edit-Refresh OAuth Token every single day.


Answers:
author: Matthew Jay
body: Same issue for me. A fix would be nice.


author: Quynh Duong
body: I have the same problem it's so annoying


author: Ethan Ellberger
body: Same for me and my colleagues who use SourceTree. Is there any fix to this?


Tags: oauth

server
Why does sourcetree show a single branch after a merge?
Asked by Michael Schamber:

I'm new to git and sourcetree, and I recently encountered an issue where there is no merge commit and all my branches are collapsed after I merged develop into main (first merge was the UPDATE:increment version to 1.0.0 commit). No matter what branch I switch to, it always displays as a single line. If I make changes to a single branch, it doesn't represent them graphically as distinct branches. This can be seen below:

![Screenshot 2023-05-17 at 8.52.03 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/257791i4B677221EDA2A228/image-size/large?v=v2&px=999 "Screenshot 2023-05-17 at 8.52.03 AM.png")

But in another repo, everything functions as normal:![Screenshot 2023-05-17 at 8.58.06 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/257793i684CE42A422A8057/image-size/large?v=v2&px=999 "Screenshot 2023-05-17 at 8.58.06 AM.png")

Has anyone encountered this before? I tried to search for a solution or cause, but didn't see anything. The only thing that stands out to me is that one is showing a remote HEAD while the other does not.  

Thanks for the help!


Answers:
author: Michael Schamber
body: Managed to solve the issue.   
I'm not sure why, but the one repo was merging via fast-forward so it was not creating a commit.  

After performing a hard reset of the main branch to the initial commit, I selected "create a commit even if merge resolved via fast-forward" and now the branches and merge commit are present.   

<br />


Tags: git

gitlab
What is a Code 10 error?
Asked by stecarr:

I'm adding an exisiting local GitLab repo located on a networked drive to SourceTree but I'm unable to see the history and recieve the following errors:

'git log' failed with code 10:

'git status' failed with code 10:

What is an Error Code 10?

Setup:  
MacOS 13.3.1  
SourceTree 4.2.2  
Embeded Git 2.39.1 - using this.  
System Git 2.39.2


Answers:
author: Denis Pedrotti
body: Hello, In my case the problem was that on my system git was at 2.21, but the version on my virtual machine was 1.x


author: Tien Trinh
body: I got the same issue, I can't commit anymore


author: mesm_str
body: Same issue.


Tags: gitlab
Cloning from local git server - checking source stuck
Asked by Marco Cornelio:

Bit of a weird scenario here but I will try my best to simplify the explanation.

Windows machine is on $Domain1

Local git server is on $Domain2

When trying to clone a repository from the local git server I am using my username from $Domain2 in the source path and I am not asked for a password. Sourcetree then begins to check the source but never finishes and seems to just spin indefinitely. I suspect that Sourcetrees default behaviour is to try and use the credentials you used when signing into Windows but unfortunately those credentials would be incorrect in this scenario. I have not seen anyway to enter a password when cloning other than if it is a cloud based git service.. i.e bitbucket, github etc.

Is there anyway to get around this? Or does Sourcetree just not play well with local git servers? I have no seen anyone else post any issues similar to this.

Thanks.


Answers:
author: dmpol18
body: "I am using my username from $Domain2 in the source path and I am not asked for a password"

Same problem.

Downgrade to 3.3.8 or 3.4.7