3279a7ec10
We name the base image we build gerrit-base and we expose port 8081 not 8080 as opendev's gerrit listens on 8081. Also explicitly build the javamelody plugin deps jar and copy it into the review_site/lib dir on Gerrit 2 bazel builds. This is necessary according to javamelody plugin build docs. In order to split Gerrit 2.x and 3.x behavior in the Bazel builds we convert our Dockerfile into a multi stage build. All this ended up down a thread pull where the script in the Dockerfile dir called build-gerrit.sh isn't actually used to build gerrit :/ clarify that. The script may be useful for local builds so we haven't removed it yet. Finally update gerrit plugin checkouts to tags or master as appropriate where stable branches don't exist for the specified version. Change-Id: I155a20685b3462e965c4216d134b3b36978fbcc7
16 lines
661 B
YAML
16 lines
661 B
YAML
- name: Run bazelisk build
|
|
shell: |
|
|
set -x
|
|
java -fullversion
|
|
{{ bazelisk_executable }} version
|
|
{{ bazelisk_executable }} build --spawn_strategy=standalone --genrule_strategy=standalone {{ bazelisk_targets }}
|
|
if [[ -f bazel-bin/plugins/javamelody/javamelody-deps_deploy.jar ]] ; then
|
|
# versions 2.14, 2.15, and 2.16 generate this file
|
|
cp bazel-bin/plugins/javamelody/javamelody-deps_deploy.jar javamelody-deps_deploy.jar
|
|
fi
|
|
# release.war is a symlink. We want an actual file so that docker copy works right.
|
|
cp bazel-bin/release.war release.war
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ zuul_work_dir }}"
|