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>
This commit is contained in:
Mike Lewis
2022-03-07 17:58:09 +00:00
committed by Joe Porpeglia
parent 3d15619d49
commit 71f8708f00
3 changed files with 11 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-jenkins-backend': patch
---
Make resourceRef required in JenkinsApi to match usage.