Commit Graph

15168 Commits

Author SHA1 Message Date
Ben Lambert 81a6c95b0a Merge pull request #5642 from ashirley/jenkinsBackend 2021-07-14 22:39:44 +02:00
blam cd43895668 chore: make the api-docs pretty again
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 8e38300d7c Consistently use job-full-name not name or slug
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 91cc4913ab Use the options object pattern for frontend API
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 37d0143e72 Bump versions to match other plugins
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 051c3b2c0c Remove useless TODO
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 24d786e197 Encode all components in the url
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley b240ef73e2 Parse as much of the config as possible at start time.
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 76fcd5ab40 Tidy types
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley dc05501c08 Tidy hook APIs
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 9fde1b3313 Rename JenkinsApiImpl to JenkinsClient
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley b56de23876 No need for changeset for new plugin
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 5a3bd232a2 Better organise exports
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley aaa12c8bdb Fix prettier from rebase
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 5b5d381947 Apply port update from #6032
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 41dab29598 Remove DummyJenkinsInfoProvider
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 17b493a3a5 Use res.json not res.send
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 0581c1f554 Use a specific type for headers
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley a1675b47a9 Tweak changeset documentation
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 048f0a69ac Fix rebase error
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 2b0eb29bf9 Spelling
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 7991581e62 Use correct annotation name
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 44e53097da Re-instate the API export
After a discussion with blam I now understand the value of the SPI export so
have added it back in (albeit with some significant changes from the original)

https://discord.com/channels/687207715902193673/687207715902193679/855378432871759922

Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 3c7991423c Remove internal things from the jenkins public API
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 9c1a673cfa Capitalise 'Jenkins'
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 217231596a Remove unneeded decodeURIComponent
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley d5cd58725e Add tests for BuildProject and remove skipped ones
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 6c7f00eb02 Add changesets
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley fef7cd6cad Extract Jenkins logic from router and test
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 8e9f167582 Add jenkinsInfoProvider tests (and fix bug :-) )
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley b470921b08 Remove duplicate copyright
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 8c1812de5f Add config schema
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 66ebdb34d1 Update site documentation
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 79593909c9 Support rebuilding a build
Note that like the previous implementation, this actually triggers a build of the project, not a re-build of a given build.

Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:01 +02:00
Andrew Shirley 64b279a55b Move typings to devDependency
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Andrew Shirley e5f69b082d Tidy documentation
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Andrew Shirley edc019d003 Use DefaultJenkinsInfoProvider
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Andrew Shirley a6f65b728f Make plugin-jenkins-backend public
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Andrew Shirley af604845bb Remove some ts-ignores
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Andrew Shirley e3675685a2 create a single DefaultJenkinsProvider
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Andrew Shirley 449b995261 Initial work on jenkins backend
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
2021-07-14 20:46:00 +02:00
Ben Lambert 12a62ea5f6 Merge pull request #6423 from chicoribas/Mask-or-hide-values-on-Scaffolder-Review-Step
Mask or hide values on scaffolder review step
2021-07-14 18:25:03 +02:00
Eric Peterson 7703516ad8 Merge pull request #6355 from adrianke77/techdocs-sidebars-not-adjusting-position
TechDocs: Sidebars not adjusting positions
2021-07-14 17:43:31 +02:00
Camila Belo b1dab7a8ca Merge pull request #6405 from backstage/mob/docs-storage-case-migration
[TechDocs] Provide a migration path from case-sensitive to lower-case entity triplets in docs storage
2021-07-14 15:16:13 +02:00
chicoribas c87f271a52 Code Review
Signed-off-by: chicoribas <chico.bribas@gmail.com>
2021-07-14 09:23:55 -03:00
Camila Belo 3b3729f299 Throws an error when there is no triplet
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2021-07-14 14:05:16 +02:00
Ben Lambert 7d24056d83 Merge pull request #6470 from backstage/imgbot
[ImgBot] Optimize images
2021-07-14 13:45:13 +02:00
ImgBotApp 3bc8d970db [ImgBot] Optimize images
*Total -- 732.21kb -> 518.42kb (29.2%)

/plugins/xcmetrics/docs/XCMetrics-overview.png -- 622.35kb -> 411.64kb (33.86%)
/plugins/pagerduty/doc/pd1.png -- 24.71kb -> 23.19kb (6.13%)
/microsite/static/img/rails-icon.png -- 5.31kb -> 5.09kb (4.1%)
/plugins/pagerduty/doc/pd4.png -- 24.48kb -> 23.50kb (4.02%)
/plugins/pagerduty/doc/pd3.png -- 48.75kb -> 48.38kb (0.75%)
/microsite/static/img/backstage-software-catalog.svg -- 1.32kb -> 1.32kb (0.29%)
/microsite/static/img/backstage-techdocs.svg -- 0.93kb -> 0.93kb (0.1%)
/microsite/static/img/backstage-k8s.svg -- 2.17kb -> 2.17kb (0.04%)
/microsite/static/img/backstage-software-templates.svg -- 2.19kb -> 2.19kb (0.04%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-07-14 10:36:19 +00:00
Ben Lambert 1020341712 Merge pull request #6339 from ngranander/xcmetrics-dashboard-mvp
Add XCMetrics Plugin
2021-07-14 12:13:47 +02:00
Niklas Granander e63a9a07e8 Fix wrong file name in readme and remove unnecessary type parameter
Signed-off-by: Niklas Granander <ngranander@spotify.com>
2021-07-14 11:55:57 +02:00