Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8442737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:55:18+00:00 2026-06-10T08:55:18+00:00

I’ve already set jenkins up so that it pulls the code from bitbucket repo,

  • 0

I’ve already set jenkins up so that it pulls the code from bitbucket repo, but to do that I had to start using SSH instead of HTTPS, so I reconfigured mercurial to do so.

However, I can’t push files now, because I’m getting the following error: “Repository access denied, access via deployment key is read-only”.

What I do is setting in the deployment key section on bitbucket the public key, and starting the private key in the pageant.

Does anyone knows how can I get rid of this error?

Thanks for help.

BTW. This is my mercurial.ini:

[ui]
username = username <email>
ssh = "TortoisePlink.exe" -ssh -2 -batch -C

[auth]
bitbucket.username = username
bitbucket.password = password

[extensions]
largefiles =

[paths]
default = ssh://hg@bitbucket.org/username/project

I have spent a couple of days on setting everything up already, so any answer will be appreciated 😀 Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:55:19+00:00Added an answer on June 10, 2026 at 8:55 am

    When you push to bitbucket over ssh you need to do so using your ssh key, not the deploy key that you set up. You can add one yourself in your bitbucket settings. Normally you’d have Jenkins running as its own windows user with its own pagent, and that user would use the read-only deploy key. You’d be doing your pushes as your own windows user and you’d be using your own ssh key.

    That said if you want to do it hastily you can probably get by with changing your [paths] section to this:

    [paths]
    default = ssh://hg@bitbucket.org/username/project
    default-push = http://bitbucket.org/username/project
    

    Then when jenkins pulls it’ll be using the default path, which is ssh and the deploy key you’ve configured. When you push you’ll be using the default-push path, which is http, and will check your [auth] section (or prompt you for your password).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
Specifically, suppose I start with the string string =hello \'i am \' me And
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.