Skip to content

Commit

Permalink
chore: Improved bazel support
Browse files Browse the repository at this point in the history
  • Loading branch information
robinshine committed Sep 25, 2024
1 parent 490b04a commit 37d5382
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ private void addCommonJobsAndTriggers(Job job) {
@Override
public Collection<Job> suggestJobs(Project project, ObjectId commitId) {
List<Job> jobs = new ArrayList<>();
if (project.getBlob(new BlobIdent(commitId.name(), "MODULE.bazel", FileMode.TYPE_FILE), false) != null) {
if (project.getBlob(new BlobIdent(commitId.name(), "MODULE.bazel", FileMode.TYPE_FILE), false) != null ||
project.getBlob(new BlobIdent(commitId.name(), "BUILD.bazel", FileMode.TYPE_FILE), false) != null ||
project.getBlob(new BlobIdent(commitId.name(), "WORKSPACE.bazel", FileMode.TYPE_FILE), false) != null) {
Job job = newJob();
job.getSteps().add(newChecksumGenerateStep("generate bazel checksum", ".bazelversion MODULE.bazel MODULE.bazel.lock **/BUILD **/BUILD.bazel"));
var setupCache = new SetupCacheStep();
Expand Down

0 comments on commit 37d5382

Please sign in to comment.