David Rautureau 51ea0aecae Fix the documentation of IT on Windows (#116) | 2 лет назад | |
---|---|---|
.. | ||
README.md | 2 лет назад | |
setup.ps1 | 4 лет назад | |
sonar-scanner-cli-qa.json | 3 лет назад |
This defines a custom Windows image necessary for the ITs. It contains all build tools helpers, as well as Node JS, which is needed to scan the example projects.
This isn’t supposed to be built by hand. We have a special image on our Google Cloud project, called packer-builder-v1. This image gets started up by Cirrus CI in the create_win_vm_task
(see ../../.cirrus.yml
), and will use Packer to create our custom VM image. The Packer instructions are contained in the sonar-scanner-cli-qa.json
file.
Note that this image is rebuilt by Cirrus CI every time the sonar-scanner-cli-qa.json
or setup.ps1
files change (see the create_win_vm_task
’s skip
instruction in ../../.cirrus.yml
). If no changes are detected, the build will be skipped, and the previously existing image will be used.
sonarqube-team
)sudo su
to use the root user (which is configured to use the GCE service account).
You can now add packer JSON files, and run the packer build
command to test your new images. Make sure you remove any test images from GCE.