Gabriel Testault
6c70d769e4
feature(jenkins-backend): be more precise in jenkins terminology
...
Only explicitly support Multibranch Pipeline and Pipeline projects
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com >
2022-12-14 12:02:27 +01:00
Gabriel Testault
98ba60b8b5
feature(jenkins-backend): improve test for standalone project
...
test that the client is called twice for unfiltered standalone projects.
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com >
2022-12-14 11:29:44 +01:00
Gabriel Testault
496201574d
feature(jenkins-backend): added support for standalone jenkins projects
...
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com >
2022-12-12 17:43:23 +01:00
Martina Iglesias Fernandez
cfe2b98fbe
Remove unnecessary dependency promise-any-polyfill
...
Signed-off-by: Martina Iglesias Fernandez <martina@roadie.io >
2022-11-25 14:26:50 +01:00
TANGUY Antoine (SIB)
b19ea927af
fix(jenkins-backend): use same config prop name
...
Signed-off-by: TANGUY Antoine (SIB) <tanguyantoine@users.noreply.github.com >
2022-09-21 15:50:56 +02:00
Johan Haals
2048ed917b
Merge pull request #13700 from timja/additional-error-handling
...
Unwrap error message when getting projects in Jenkins plugin
2022-09-19 14:24:47 +02:00
Tim Jacomb
50577161a4
Prettier
...
Signed-off-by: Tim Jacomb <timjacomb1@gmail.com >
2022-09-19 10:29:36 +01:00
Tim Jacomb
a966ed8385
Unwrap error message when getting projects in Jenkins plugin
...
Signed-off-by: Tim Jacomb <timjacomb1@gmail.com >
2022-09-16 10:48:17 +01:00
Tim Jacomb
e55d855a6b
Fix Jenkins plugin not working at all
...
Signed-off-by: Tim Jacomb <timjacomb1+github@gmail.com >
2022-09-16 09:47:03 +01:00
TANGUY Antoine (SIB)
47952621dc
feat(jenkins-backend): extend config to allow passing extra headers
...
Signed-off-by: TANGUY Antoine (SIB) <tanguyantoine@users.noreply.github.com >
2022-09-05 14:34:19 +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
9053fd9ad3
jenkins-backend
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-19 16:33:27 +02:00
planeiii
5a36f20cc6
chore: added standards-compliant Promise.any implementation
...
Signed-off-by: planeiii <planeiii@thousandeyes.com >
2022-06-28 09:07:28 -05:00
planeiii
64af1b4756
chore: added types to Promise.any polyfill
...
Signed-off-by: planeiii <planeiii@thousandeyes.com >
2022-06-24 08:56:30 -05:00
planeiii
119f075cd8
chore: added Promise.any polyfill for Node v14
...
Signed-off-by: planeiii <planeiii@thousandeyes.com >
2022-06-22 10:13:54 -05:00
planeiii
4764e30cc8
chore: updated getProjects to accept arrays of branches
...
Signed-off-by: planeiii <planeiii@thousandeyes.com >
2022-06-21 09:24:08 -05:00
planeiii
8747824221
feat(jenkins-backend): add multiple branch support
...
Signed-off-by: planeiii <planeiii@thousandeyes.com >
2022-06-16 16:40:32 -05:00
Hasan Oezdemir
83f6a64d2c
bugfix: provide backstage token for rebuild api call
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-05-27 02:46:34 +02:00
Joe Porpeglia
8cc75993a6
Fix PermissionEvaluator instance checks
...
Signed-off-by: Joe Porpeglia <josephp@spotify.com >
2022-04-19 14:32:58 -04:00
Vincenzo Scamporlino
63902fcc17
PermissionEvaluator: rename query to authorizeConditional
...
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:29:00 +02:00
Vincenzo Scamporlino
b4af8664b5
api report and minor fixes
...
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:29:00 +02:00
Vincenzo Scamporlino
173aadff5b
Avoid PermissionEvaluator breaking changes
...
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:29:00 +02:00
Vincenzo Scamporlino
1917923ab8
Jenkins: use PermissionEvaluator instead of PermissionAuthorizer
...
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:28:59 +02:00
Vincenzo Scamporlino
a119dfbbd5
Apply suggestions from code review
...
Co-authored-by: Joe Porpeglia <josephp@spotify.com >
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:28:59 +02:00
Mike Lewis
b831d53972
jenkins-backend: update PermissionAuthorizer mock in jenkinsApi test suite
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2022-04-08 12:28:59 +02:00
Hasan Oezdemir
cc8f0076d8
feature: rename token to backstageToken and update the documentation
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-04-06 16:18:43 +02:00
Hasan Oezdemir
b013de3f50
feature: provide access token to JenkinsInstanceConfig. It can be passed to other backend calls if authentication enabled. DefaultJenkinsInfoProvider sends always this token to catalog api if access token exists.
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-04-06 13:25:05 +02:00
Sven Sander
4dd6a05f02
Fixed type error in test case
...
Signed-off-by: Sven Sander <dev@svens-corner.de >
2022-03-26 12:03:13 +01:00
Sven Sander
ca91107110
Fixed possible type error if jenkins response contains null values
...
Signed-off-by: Sven Sander <dev@svens-corner.de >
2022-03-25 21:34:04 +01:00
Mike Lewis
71f8708f00
jenkins: make resourceRef required in JenkinsApi#buildProject
...
This method is only called in one place outside tests, and the
resourceRef is guaranteed to be set there, so we can tighten this
typing up a bit to make the value mandatory.
This class is not exported by the package, so this can be shipped as
a patch change.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2022-03-21 18:12:17 -04:00
Dimitris Apostolou
aedd4daa66
Fix typos
...
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com >
2022-03-13 14:12:05 +02:00
Patrik Oldsberg
17e0b29a42
Merge pull request #9840 from nodify-at/master
...
Integrate permissions to Jenkins plugin
2022-03-03 16:16:24 +01:00
Hasan Oezdemir
5a74ea82bb
(feature): improve the change set and remove typings
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-03-03 15:53:54 +01:00
Fredrik Adelöw
899f196af5
update to use getEntityByRef
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-03-03 13:27:25 +01:00
Fredrik Adelöw
36aa63022b
deprecate EntityName, introduce CompoundEntityRef
...
deprecate getEntityName, introduce getCompoundEntityRef
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-03-02 21:54:45 +01:00
Hasan Ozdemir
950003f5f3
Update plugins/jenkins-backend/src/service/jenkinsApi.test.ts
...
Co-authored-by: MT Lewis <mtlewis@users.noreply.github.com >
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-03-02 13:41:23 +01:00
Hasan Oezdemir
70f29c5423
(feature): remove unused configuration and improved permission management, describe the permission integration in detail.
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-03-01 23:45:01 +01:00
Hasan Oezdemir
1543dcf31a
(feature): remove integration router and use catalog resource type since we use the same resources required by the catalog entity
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-03-01 00:08:35 +01:00
Hasan Oezdemir
23e1c17bba
(feature): enable permissions in jenkins plugin. Actions (re-build) can be executed only by a user who owns the entity (or related group own the entity)
...
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com >
2022-02-27 01:58:56 +01:00
Fredrik Adelöw
184366af8b
stop using EntityRef in jenkins-backend
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-02-23 12:01:27 +01:00
Patrik Oldsberg
377fce4677
jenkins-backend: depend on interface rather than implementation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-02-15 17:59:49 +01:00
Fredrik Adelöw
9632cda521
Fix the last renmnants of the old copyright header
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-01-09 22:10:52 +01:00
Hasan Ozdemir
eb3fd85d3e
feature: add crumbIssuer option to jenkins (optional) configuration, improve the UI to show a notification after executing the action: re-build
...
Signed-off-by: Hasan Ozdemir <21654050+nodify-at@users.noreply.github.com >
2021-12-15 17:35:44 +01:00
Otto Sichert
b23bc7f9c3
Change default port of backend to 7007 due to MacOS Control Center update
...
Signed-off-by: Otto Sichert <git@ottosichert.de >
2021-11-18 16:45:57 +01:00
Patrik Oldsberg
8142a8ecb2
packages,plugins: add package documentation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-14 18:47:53 +02:00
GregoireW
8bf9d52416
null test in more natural way
...
Signed-off-by: GregoireW <24318548+GregoireW@users.noreply.github.com >
2021-08-21 19:13:54 +02:00
gregoireW
513a3b2553
Update plugins/jenkins-backend/src/service/jenkinsApi.ts
...
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
Signed-off-by: GregoireW <24318548+GregoireW@users.noreply.github.com >
2021-08-21 19:13:54 +02:00
GregoireW
b6738e7655
Fix case with no last build in jenkins
...
Signed-off-by: GregoireW <24318548+GregoireW@users.noreply.github.com >
2021-08-21 18:39:29 +02:00
Oliver Sand
efbb82dd30
Extract JenkinsConfig to make writing a custom JenkinsInfoProvider easier
...
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com >
2021-08-12 14:24:06 +02:00
Fredrik Adelöw
923491eece
run prettier formatting
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-08-09 11:54:38 +02:00