Merge branch 'master' into private

* master:
  Add docker-compose to the slave-bazel-docker image
  Fix task plugin branch configuration
  Print chrome version used for PolyGerrit tests to build logs
  Build owners plugin on stable-3.4
  Add stable-3.{3,4} rate-limiter master tree builds
  Add stable-3.{3,4} heartbeat master tree builds
  Add stable-3.{3,4} gc-conductor master tree builds
  Remove obsolete gerrit branch go-import build lines
  Build go-import plugin on stable-3.4 branch
  Build/test owners on Java 11 for stable-3.3 onwards
  Run tests for the owners' plugin builds
  Allow to build all owners-a* artifacts
  Build go-import plugin on stable-3.3 branch
  Remove builds on stable-3.1 branch
  Gatling tests: set Gerrit to 3.4.0-rc5
  Build events-rabbitmq plugin on master
  Set Gerrit to v3.4.0-rc4
  Simplify the execution of the release container
  Pass or fail gatling-gerrit-test based on gatling results
  Build project-group-structure plugin on stable-3.3 && stable-3.4 branch
  Remove unused manual plugin build template
  Export logs to S3 when running gatling-gerrit-test
  Test Gerrit v3.4.0-rc3 with Gatling
  Build multi-site on its own stable-3.4 branch
  Build zookeeper-refdb on its own stable-3.4 branch
  Build events-kafka on its own stable-3.4 branch
  Install python3-distutils package
  Build events-aws-kinesis master against gerrit-3.4
  Build events-gcloud-pubsub master against gerrit-3.4
  Avoid looking for plugin's artifacts in subdirectories
  Enable events-kafka build on 3.1, 3.2, 3.3
  Verify the events-gcloud-pubsub plugin changes on stable-3.3
  Verify the events-aws-kinesis plugin changes on stable-3.3
  Remove redundant repo variable in events-aws-kinesis
  Build events-kafka plugin on stable-2.16/3.0
  Move gcloud-pubsub-events job to events-gcloud-pubsub
  Move kinesis-events job to events-aws-kinesis
  Build events-broker on its own stable-3.4 branch
  Pass GERRIT_WAR_URL to override the version under test
  Build account plugin on stable-3.4 branch
  Build analytics plugin on stable-3.4 branch
  Gatling tests: bump Gerrit to v3.4.0-rc1
  Build owners plugin on stable-3.4 branch
  Build find-owners plugin on stable-3.4 branch
  Build github plugin on stable-3.4 branch
  Build its-base plugin on stable-3.4 branch
  Build its-jira plugin on stable-3.4 branch
  Build kafka-events plugin on stable-3.4 branch
  Build menuextender plugin on stable-3.4 branch
  Build simple-submit-rules plugin on stable-3.4 branch
  Build verify-status plugin on stable-3.4 branch
  Build metrics-reporter-prometheus plugin on stable-3.4 branch
  Build oauth plugin on stable-3.4 branch
  Build reject-private-submit plugin on stable-3.4 branch
  Build rename-project plugin on stable-3.4 branch
  Build reviewassistant plugin on stable-3.4 branch
  Build groovy-provider plugin on stable-3.4 branch
  Build slack-integration plugin on stable-3.4 branch
  Build websession-broker plugin on stable-3.4 branch
  Build websession-flatfile plugin on stable-3.4 branch
  Build zookeeper-refdb plugin on stable-3.4 branch
  Build zuul-results-summary plugin on stable-3.4 branch
  Build serviceuser plugin on stable-3.4 branch
  Build ref-protection plugin on stable-3.4 branch
  Build login-redirect plugin on stable-3.4 branch
  Build events-log plugin on stable-3.4 branch
  Build quota plugin on stable-3.4 branch
  Build lfs plugin on stable-3.4 branch
  Build audit-sl4j plugin on stable-3.4 branch
  Build code-owners plugin on stable-3.4 branch
  Build branch-network plugin on stable-3.4 branch
  Build pull-replication plugin on stable-3.4 branch
  Build avatars-external plugin on stable-3.4 branch
  Build autosubmitter plugin on stable-3.4 branch
  Build automerger plugin on stable-3.4 branch
  Build admin-console plugin on stable-3.4 branch
  Build module events-broker on stable-3.4 branch
  Build module cache-chroniclemap on stable-3.4 branch
  Build reviewers-by-blame plugin on stable-3.4 branch
  Build readonly plugin on stable-3.4 branch
  Build multi-site plugin on stable-3.4 branch
  Build high-availability plugin on stable-3.4 branch
  Build reviewers plugin on stable-3.4 branch
  Build checks plugin on stable-3.4 branch
  Build saml plugin on stable-3.4 branch
  zuul-results-summary plugin is jar plugin now
  Build saml plugin on own 3.2 and 3.3 branches
  Build metrics-reporter-cloudwatch plugin on stable-3.4
  Build healthcheck plugin on stable-3.4
  Build javamelody plugin on stable-3.4
  Gatling tests: bump Gerrit to v3.4.0-rc0
  Rename gatling test pipeline using kebab-case
  Build Gerrit and validate changes on stable-3.4
  Build out-of-the-box plugin on stable-3.4
  Build avatars-gravatar plugin on stable-3.4
  Build uploadvalidator plugin on stable-3.4
  Introduce Plugins-stable-3.4 view on Gerrit-CI
  Build ref-prottection plugn in 3.3
  Build kinesis plugin master against Gerrit stable-3.3
  Add gcloud-pubsub-events plugin build
  Add kinesis-events plugin build
  Bump Gerrit/Gatling tests to v3.3.2
  Revert "Move execution of gatling test to 17:15 UTC"
  Fully qualify parameters and environment variables
  Move execution of gatling test to 17:15 UTC
  Build Owner plugin on stable 3.3
  Default git http username and password to empty strings
  Make gatling-gerrit-test job more resilient
  Gatling Gerrit: Generate unique target URL
  Adapt to aws-gerrit primary/replica renaming
  Build go-import plugin on own 3.2 branch
  Build javamelody plugin on own 3.2 branch
  Quote and qualify parameters explicitly
  Build automerger plugin on recent branches
  Adapt checker query
  Allow publishing to different Docker registries
  Mention that Java 8 will have to stay until v3.4 is EOL
  Fix slave-debian Dockerfile setup of OpenJDK 8
  web-component-tester: Install babel runtime dependency
  Fix Jenkins master image
  Remove broken --test_verbose_timeout_warnings option
  Remove explicit --build_tests_only option
  Remove explicit --test_output errors option
  Remove --test_summary=detailed option
  Test only Git protocol v2 and Elastic outside RBE
  Revert "Revert "Bazel: Activate RBE configuration on GCP""
  Default params for gatling against single-master gerrit
  Revert "Bazel: Activate RBE configuration on GCP"
  Revert "Revert "Bazel: Activate RBE configuration on GCP""
  Don't build bazelisk and buildifier from source
  Build server-config plugin for stable-3.1
  Do not import Google's DNS hosts on Docker images
  Bump buildifier version to 4.0.0
  Bump bazel version to 4.0.0
  Build reject-private-submit plugin against 3.0-3.3
  Build zuul-results-summary plugin on stable-3.3
  Cross-build Gerrit UI plugins
  Build events-broker module on recent branches
  Build find-owners plugin against its own 3.2 branch
  Build its-base plugin against 3.3
  Build its-jira plugin against 3.3
  Fix jenkins docker image name
  Build lfs plugin against 3.3
  Build egit against gerrit 3.3
  Build menuextender against gerrit 3.3
  Build events-log against gerrit 3.3
  Build readonly plugin against gerrit 3.3
  Build reviewassistant plugin against gerrit 3.3
  Build avatars-external against gerrit 3.3
  Build login-redirect against gerrit 3.3
  Build admin-console against gerrit 3.3
  Fix bazelisk build on Docker build image
  Build autosubmitter plugin on stable-3.3 branch
  Build metrics-reporter-elasticsearch plugin
  Update Docker debian variant for Jenkins master
  Build serviceuser plugin on stable-3.3
  Build reviewassistant on 3.2 branch
  Revert "Bazel: Activate RBE configuration on GCP"
  Revert "Revert "Bazel: Activate RBE configuration on GCP""
  Revert "Bazel: Activate RBE configuration on GCP"
  Bazel: Activate RBE configuration on GCP
  Build events-broker module
  Remove builds on stable-3.0
  Remove obsolete Bazel spawn strategies from plugin branch build
  Build autosubmitter plugin on stable-3.2
  Multiple targets build for zookeeper-refdb plugin
  Fix branch detection for Java 8/11 to build plugins
  Build websession-flatfile on stable-3.3
  Build quota plugin on stable-3.2 and stable-3.3
  Build oauth plugin on stable-3.2
  Build saml plugin on recent branches
  Remove obsolete Bazel spawn strategies
  Remove '[' in the execution of git diff for .bazelversion
  Build code-owners plugin on stable-3.3
  Build simple-submit-rules plugin on stable-3.2 and stable-3.3
  Build reviewassistant on 3.0 and 3.1 branch
  Build verify-status plugin on stable-3.1
  Build simple-submit-rules plugin on stable-3.1
  Remove obsolete Bazel spawn strategies
  Build rename-project plugin on stable-3.3
  Build zookeeper-refdb plugin on stable-3.3
  Verify kafka-events plugin
  Build out-of-the-box plugin on stable-3.3
  Build kafka-events plugin on stable-3.3
  Build reviewers plugin on stable-3.3
  Build account plugin on stable-3.3
  Build analytics plugin on stable-3.3
  Extend maximum build time to 2h
  Build code-owners plugin on stable-3.3
  Build uploadvalidator plugin on stable-3.3
  Build websession-broker plugin on stable-3.3
  Build slack-integration plugin on stable-3.3
  Build pull-replication plugin on stable-3.3
  Build multi-site plugin on stable-3.3
  Build groovy-provider on stable-3.3
  Build reviewers-by-blame plugin on stable-3.3
  Build oauth plugin on stable-3.3
  Build find-owners plugin on stable-3.2 and stable-3.3
  Build audit-sl4j on stable-3.3
  Build github plugin on stable-3.3
  Set the correct JDK version for Maven plugins
  Build batch plugin on its stable-3.3 branch
  Build checks plugin on stable-3.3
  Build high-availability plugin on stable-3.3
  Build branch-network plugin on stable-3.3
  Build avatars-gravatar plugin on stable-3.3
  Build autosubmitter plugin on stable-3.3
  Revert "Disable elasticsearch tests in Gerrit-CI builds"
  Build metrics-reporter-cloudwatch against stable-3.3
  Build healthcheck stable-3.3 branch
  Build javamelody master branch against stable-3.3
  Fixed typo for GERRIT_VOLUME_SNAPSHOT_ID
  Expose gerrit version and gerrit patch parameters
  Make DOCKER_HOST env variable available to all steps
  Adopt gatling-gerrit-test job to the gerrit-ci environment

Change-Id: I3978d1b8a66daf7d2518b628846b74d572a64b9d
tree: 9dbe129e3c10de5819a10b124253984bac9956e5
  1. jenkins/
  2. jenkins-docker/
  3. vars/
  4. worker/
  5. .gitignore
  6. Jenkinsfile
  7. README.md
  8. yamllint-config.yaml
README.md

Gerrit CI scripts

Providing jobs

This project uses Jenkins Jobs Builder [1] to generate jobs from yaml descriptor files.

To add new jobs reuse existing templates, defaults etc. as much as possible. E.g. adding a job to build an additional branch of a project may be as easy as adding the name of the branch to an existing project.

To ensure well readable yaml-files, use yamllint [2] to lint the yaml-files. Yamllint can be downloaded using Python Pip:

pip3 install yamllint

To run the linter, execute this command from the project's root directory:

yamllint -c yamllint-config.yaml jenkins/**/*.yaml

Yamllint will not fix detected issues itself.

[1] https://docs.openstack.org/infra/jenkins-job-builder/index.html [2] https://pypi.org/project/yamllint/