docker: generate chrome-vers.mk under agent-chrome build step * Fixes an issue where chrome-vers.mk is not created when building but was created when publishing which broke things. * Fixes an issue with generating chrome-vers.mk under a Mac. We use printf instead of echo, see [0]. * Make sure "latest" is inserted into chrome-vers.mk. The agent-bazel image uses chrome-vers.mk. Some images depended on agent-bazel and used "latest" but because "latest" wasn't in the file it failed to use the image. This issue is now fixed so that agent-bazel successfully creates a "latest" image locally. [0] https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working Change-Id: I520a08d52c1dfda3e623be436682fcb03ab26212
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 --require-hashes 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/