Comments (4)
@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.
from teamcitytriggerhook.
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.
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)
- [DepShield] (CVSS 9.8) Vulnerability due to usage of commons-fileupload:commons-fileupload:1.3.2
- Try to fire the hook for refs/pull-requests/.*/merge HOT 4
- include merge check of queue blocker
- aui tabs broken in 6.0 HOT 5
- Java 1.8.0_102-b14 is not supported in versions app version 4.5.1 or 4.5.2 HOT 2
- commit to a branch with a PR open triggers two builds HOT 1
- create a builds running checker
- Must have exactly one capturing group. HOT 15
- Repository VCS trigger type doesn't work HOT 6
- Exclusion of changesets is needed to filter out certain commits by regex
- DepShield encountered errors while building your project
- Feature request: Implement global settings for TeamCity server configurations HOT 1
- in build and test menu polling should be replaced by on demand request
- Trigger Shadow Merge Branch on Pull Request not matched by any branch specification HOT 1
- Tag trigger not working HOT 1
- Builds in a PR HOT 1
- Trgigger build in TeamCity for pull request doesn't work correctly HOT 2
- Bitbucket 8.x support HOT 7
- Push new branch to bitbucket does not trigger a build, v5.0.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teamcitytriggerhook.