Commit Graph

694 Commits

Author SHA1 Message Date
Andre Wanlin e8d7976413 Added back support for when no branch is provided for the Bitbucket Server UrlReader
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-10-12 14:51:50 -05:00
Patrik Oldsberg c59f64df86 Merge pull request #13990 from DavidZemon/feature/bb-server-fix
fix: [#13560] Pull commit hash for branch names by branch query
2022-10-09 23:57:32 +02:00
Fredrik Adelöw 2d3a5f09ab json
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-10-06 15:00:36 +02:00
David Zemon c44cf412de fix: [#13560] Pull commit hash for branch names by branch query
Using the commits API was unstable and broke for branches with a '/'.
Using the branches API works for any branch and is documented in the
Atlassian API docs:
https://docs.atlassian.com/bitbucket-server/rest/7.9.0/bitbucket-rest.html#idp209

Signed-off-by: David Zemon <david@zemon.name>
2022-10-04 11:19:56 -05:00
Patrik Oldsberg d45fc41bc7 backend-common: tweak DatabaseManager
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-10-03 23:14:32 +02:00
blam dcedf1bab5 chore: store the promise instead to combat race conditions
Signed-off-by: blam <ben@blam.sh>
2022-10-03 15:15:23 +02:00
blam ac8a72ed3b chore: cache the database calls and return the cached one if available
Signed-off-by: blam <ben@blam.sh>
2022-10-03 14:35:28 +02:00
Ben Lambert f969132b94 Merge pull request #13728 from backstage/rugvip/zipfix
backend-common: fix for zip entries being skipped
2022-09-19 09:20:33 -04:00
Patrik Oldsberg 0c780278e0 backend-common: fix for zip entries being skipped
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-19 14:24:41 +02:00
Magnus Persson 709f468330 backend-common: wrap branch command
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-09-13 11:17:30 +02:00
Patrik Oldsberg 96689fbdcb backend-common: workaround for database client being collected before interval
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-07 16:48:30 +02:00
Ben Lambert c04161b8a3 Merge pull request #12953 from immobiliare/feat/added-ports-range
feat(backend-common): added ports range
2022-09-06 12:21:44 +02:00
Antonio Musolino e3b1993788 feat(backend-common): added ports range
Signed-off-by: Antonio Musolino <antoniomusolino007@gmail.com>
2022-09-06 12:01:05 +02:00
Fredrik Adelöw e40883d287 Merge pull request #13504 from backstage/freben/SSSSS
🧹  just get rid of some String
2022-09-02 16:39:01 +02:00
Fredrik Adelöw 2f52e74b49 just get rid of some String
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-09-02 13:21:15 +02:00
Matteo Silvestri c28b1f1826 fix tests and add inline doc
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-02 11:04:21 +02:00
Matteo Silvestri 691161fc49 revert failed test
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-01 17:10:27 +02:00
Matteo Silvestri bf3cc134eb add changeset
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-01 15:13:31 +02:00
Matteo Silvestri 178d4b69d0 fix linting
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-01 12:42:53 +02:00
Matteo Silvestri 4bcfda3ba5 Merge remote-tracking branch 'upstream/master'
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-01 12:13:28 +02:00
Matteo Silvestri 9b05fd5f93 apply requested pr changes
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-01 11:49:59 +02:00
Fredrik Adelöw 3d4f5daadf Remove use of deprecated trimLeft/trimRight
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-31 09:45:23 +02:00
Fredrik Adelöw aaab1e34da Fix linting errors after #13392
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-30 13:44:09 +02:00
Fredrik Adelöw c3c90280be added keepalive to DatabaseManager
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-30 11:19:09 +02:00
Matteo Silvestri 8a59bedadd add KUBERNETES env to enable Kubernetes tests
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-08-30 11:13:02 +02:00
matteosilv 8f092f69b0 Merge branch 'backstage:master' into master 2022-08-30 09:45:19 +02:00
blam 978eaf9bfa chore: updating some changeset and api-reports
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam b27099595f chore: this should work (famous last words)
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam 30c894cf06 chore: revert aws stuff
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam 4c6cd4f7df chore: mocks don't work if they're deconstructed?
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
matteosilv de8b0d8b51 Merge branch 'backstage:master' into master 2022-08-23 09:30:25 +02:00
Patrik Oldsberg cb24f975aa backend-common: added test to ensure malicious zip archives are handled
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-09 18:28:38 +02:00
Patrik Oldsberg 5e4dc173f7 backend-common: validate zip archive paths when unpacking into a dir
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-09 18:28:38 +02:00
Ben Lambert eacf97cc2b Merge pull request #12774 from jamieklassen/gitlab-unscoped
support unscoped routes in location targets on gitlab
2022-08-02 10:33:54 +02:00
Matteo Silvestri b4b30225e3 fix test failing with node 14
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-07-28 18:17:52 +02:00
Matteo Silvestri 88d227e8e8 only run if CI=true and delete kind command to clean workspace
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-07-28 17:08:38 +02:00
Ben Lambert c7dd03bf96 Merge pull request #12718 from Charge71/master
feat(logging): export redactLogLine function
2022-07-28 14:01:25 +02:00
Diego Bardari ef4fd4abd1 feat(logging): renamed redactLogLine function to redactWinstonLogLine
Signed-off-by: Diego Bardari <diego.bardari@klarna.com>
2022-07-28 11:56:07 +02:00
Matteo Silvestri cbf0cbbb98 skip if not docker and bootstrap KinD in workflow action
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-07-27 22:12:04 +02:00
Matteo Silvestri eadfa6fc45 more tests KubernetesContainerRunner
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-07-27 20:02:35 +02:00
Matteo Silvestri 4e662da44a first draft KubernetesContainerRunner
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-07-26 18:18:23 +02:00
Ben Lambert 8ecf0660a3 Merge pull request #12780 from andrewduckett/patch/plugin-division-mode
respect `ensureExists` when `pluginDivisionMode` is set to `schema`.
2022-07-25 22:07:05 +02:00
Ben Lambert 75bfc7317d Merge pull request #12711 from Bonial-International-GmbH/pjungermann/bitbucketServer/auth
feat: support Basic Auth and token-only at Git commands for Bitbucket Server
2022-07-25 17:06:08 +02:00
Patrick Jungermann 3b7930b3e5 feat: support Bearer auth header at git commands
Support Bearer-based Authorization header for auth
with token only (no username).

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-07-25 15:53:30 +02:00
Ben Lambert f47d8aa55e Merge pull request #12090 from backstage/fix/broken-zip-files
Throw on corrupt ZIP files instead of hanging indefinitely
2022-07-25 15:31:33 +02:00
blam 764ba707a2 chore: refactor and comment
Signed-off-by: blam <ben@blam.sh>
2022-07-25 13:53:54 +02:00
Jamie Klassen 1e1e436e86 Look up project IDs for unscoped routes
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-07-22 07:36:35 -04:00
Andrew Duckett 770d3f92c4 respect ensureExists when pluginDivisionMode is set to schema.
Signed-off-by: Andrew Duckett <andrew.duckett@gmail.com>
2022-07-21 22:21:53 -05:00
Ben Lambert 7495b78b7e Merge pull request #12748 from awanlin/bug/fix-bitbucket-server-getlastcommitshorthash
Added back support for when no branch is provided
2022-07-21 17:15:47 +02:00
blam 01d825ba28 chore: finish piping and stuff and making it lovely
Signed-off-by: blam <ben@blam.sh>
2022-07-21 16:31:02 +02:00