]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Move ci builds to sonarqube team gcp project.
authorMalena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com>
Tue, 1 Sep 2020 08:04:29 +0000 (10:04 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Sep 2020 08:04:29 +0000 (10:04 +0200)
.cirrus.yml
it/docker/Dockerfile
it/packer/sonar-scanner-cli-qa.json

index 3c726ef03a510a88290c6fcf489c1e489fd548a1..25416225f6a271164cf7804de7ec1c3a64747a79 100644 (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:
index 78df5f301ddd7ac2a8a1554bbfea9b56dbb52321..db704ac122e6a393762b7e4c196ea073ef82e0fb 100644 (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
 
index 8ab3e86ca088feb37bcdd515b12d983d3ed14a1b..6ab94a86f076687995dde240845be8fd00fd316d 100644 (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"]
     }
   ],