Giter Site home page Giter Site logo

Comments (4)

kabalerror avatar kabalerror commented on August 16, 2024 1

@7visij7, not sure if you need this still 1.5 year later, but...
I was facing similar issue, lots of vcs roots to configure TC hook and pressing "Test and Save Password" manually is boring. Looking into source code I found that hook creates "testconnection" API endpoint.
src/main/java/com/trimble/tekla/rest/TeamctiyRest.java:446
That's the one you need to avoid using manual button press each time.
Here's a snippet of Python code , yes it's plain/text =\

import requests
r = requests.get("https://[bitbucketurl]/rest/teamcity/latest/projects/[project]/repos/[reponame]/testconnection?url=[teamcity_host]:[port]&username=[username]&password=****")

from teamcitytriggerhook.

jmecosta avatar jmecosta commented on August 16, 2024

from teamcitytriggerhook.

7visij7 avatar 7visij7 commented on August 16, 2024

Hi It's likely not supported. I've never coded any support for api change hooks. Basically for this to work we would need to have a general password in the server and then you would be able to just make changes saying the ID of the credentials So at the moment not supported

On Thu, Mar 24, 2022, 12:20 7visij7 @.> wrote: Hello, Firstly i want say - thanks for you work! Trying to work with bitbucket api using this manual https://docs.atlassian.com/bitbucket-server/rest/7.6.3/bitbucket-rest.html, especially try to set hook with method (/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings) And when i send data to server, get errors: { "errors": [ { "context": "teamCityPassword", "message": "Please click "Test and Save Password" button first.", "exceptionName": null }]} Please, can you explain how i can avoid errors about Please click button, when using bitbucket api. Thanks BR visij — Reply to this email directly, view it on GitHub <#83>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH6HSCNAB7TBZJGD5KZUALVBQ6YTANCNFSM5RQVRQWA . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thanks for you answer!

from teamcitytriggerhook.

jmecosta avatar jmecosta commented on August 16, 2024

Nice workaroubd thanks for sharing. Likewise you can also upload thw configuration json and save from so script. Nice when u need to rotate the passworss

from teamcitytriggerhook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.