Browse Source

Move ci builds to sonarqube team gcp project.

tags/4.5.0.2216
Malena Ebert 3 years ago
parent
commit
92720a7655
No account linked to committer's email address
3 changed files with 17 additions and 17 deletions
  1. 13
    13
      .cirrus.yml
  2. 1
    1
      it/docker/Dockerfile
  3. 3
    3
      it/packer/sonar-scanner-cli-qa.json

+ 13
- 13
.cirrus.yml View File

@@ -1,5 +1,5 @@
# content of service-account-credentials.json, used to access to Google Cloud Platform
gcp_credentials: ENCRYPTED[!1fcffe5cc2de4fbbda5befae835ca275a47c1148dabbbb7b5d21334604efba3ef8730d8bc5820952e575c7dd5177e433!]
gcp_credentials: ENCRYPTED[650ffad2befada420a9dcba93e7efcb5cb0d7af63b42ca3ed64a1e5d0884ce93cf92055fbe7ee9af79ccc4a81c32329b]

#
# ENV VARIABLES
@@ -32,9 +32,9 @@ env:
# RE-USABLE CONFIGS
#
container_definition: &CONTAINER_DEFINITION
image: gcr.io/ci-cd-215716/base:latest
cluster_name: cirrus-uscentral1a-cluster
zone: us-central1-a
image: gcr.io/sonarqube-team/base:mvn-jdk-11
cluster_name: cirrus-ci-cluster
zone: europe-west4-a
namespace: default

only_sonarsource_qa: &ONLY_SONARSOURCE_QA
@@ -66,10 +66,10 @@ linux_qa_task:
<<: *ONLY_SONARSOURCE_QA
gke_container:
dockerfile: it/docker/Dockerfile
builder_image_project: ci-cd-215716
builder_image_name: docker-builder-v2
cluster_name: cirrus-uscentral1a-cluster
zone: us-central1-a
builder_image_project: sonarqube-team
builder_image_name: docker-builder-v20200819
cluster_name: cirrus-ci-cluster
zone: europe-west4-a
namespace: default
cpu: 1
memory: 2G
@@ -91,9 +91,9 @@ create_win_vm_task:
<<: *ONLY_SONARSOURCE_QA
skip: "!changesInclude('it/packer/setup.ps1', 'it/packer/sonar-scanner-cli-qa.json')"
gce_instance:
image_project: ci-cd-215716
image_name: packer-builder-v1
zone: us-central1-a
image_project: sonarqube-team
image_family: packer-builder
zone: europe-west4-a
type: n1-standard-8
use_ssd: true
scopes:
@@ -107,11 +107,11 @@ win_qa_task:
- build
<<: *ONLY_SONARSOURCE_QA
gce_instance:
image_project: ci-cd-215716
image_project: sonarqube-team
# This VM is built using Packer, see "create_win_vm_task" above.
image_name: sonar-scanner-cli-qa
platform: windows
zone: us-central1-a
zone: europe-west4-a
type: n1-standard-8
use_ssd: true
env:

+ 1
- 1
it/docker/Dockerfile View File

@@ -11,7 +11,7 @@
# Google Cloud Container Registry. See section "gke_container" of .cirrus.yml
#------------------------------------------------------------------------------

FROM gcr.io/ci-cd-215716/base:latest
FROM gcr.io/sonarqube-team/base:latest

USER root


+ 3
- 3
it/packer/sonar-scanner-cli-qa.json View File

@@ -2,8 +2,8 @@
"builders": [
{
"type": "googlecompute",
"project_id": "ci-cd-215716",
"source_image": "windows-server-1809-dc-core-v20200211",
"project_id": "sonarqube-team",
"source_image": "windows-server-1809-dc-core-v20200813",
"image_name": "sonar-scanner-cli-qa",
"disk_size": "50",
"machine_type": "n1-standard-1",
@@ -14,7 +14,7 @@
"metadata": {
"windows-startup-script-cmd": "winrm quickconfig -quiet & net user /add packer_user & net localgroup administrators packer_user /add & winrm set winrm/config/service/auth @{Basic=\"true\"}"
},
"zone": "us-central1-a",
"zone": "europe-west3-a",
"tags": ["packer"]
}
],

Loading…
Cancel
Save