Skip to content

Commit 1254a17

Browse files
author
Vitor Bandeira
committed
ci: move Bazel CI to Jenkins
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent e7a3467 commit 1254a17

File tree

2 files changed

+31
-55
lines changed

2 files changed

+31
-55
lines changed

.github/workflows/github-actions-bazel-build.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

Jenkinsfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,37 @@ def getParallelTests(String image) {
136136
}
137137
},
138138

139+
'Build with Bazel': {
140+
node {
141+
withDockerContainer(args: '-u root -v /var/run/docker.sock:/var/run/docker.sock', image: image) {
142+
stage('Setup Bazel Build') {
143+
echo "Build with Bazel";
144+
sh label: 'Configure git', script: "git config --system --add safe.directory '*'";
145+
checkout scm;
146+
}
147+
stage('Bazel Build') {
148+
timeout(time: 120, unit: 'MINUTES') {
149+
sh label: 'Bazel Build', script: '''
150+
bazel test \
151+
-c opt \
152+
--keep_going \
153+
--show_timestamps \
154+
--test_output=errors \
155+
--curses=no \
156+
--force_pic \
157+
...
158+
''';
159+
}
160+
}
161+
stage('Bazel smoke test') {
162+
timeout(time: 5, unit: 'MINUTES') {
163+
sh label: 'Bazel Smoke Test', script: 'bazel-bin/openroad -help';
164+
}
165+
}
166+
}
167+
}
168+
},
169+
139170
'Check message IDs': {
140171
dir('src') {
141172
sh label: 'Find duplicated message IDs', script: '../etc/find_messages.py > messages.txt';

0 commit comments

Comments
 (0)