Merge "Add new job to deploy kni on baremetal"
authorEric Ball <eball@linuxfoundation.org>
Tue, 17 Dec 2019 16:43:32 +0000 (16:43 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Tue, 17 Dec 2019 16:43:32 +0000 (16:43 +0000)
42 files changed:
jenkins-config/clouds/openstack/cattle/ubuntu1804-helm-8c-32g.cfg [new file with mode: 0644]
jjb/addon-onap/info-addon-onap.yaml [new file with mode: 0644]
jjb/addon-snappy/info-addon-snappy.yaml [new file with mode: 0644]
jjb/aiedge/info-aiedge.yaml [new file with mode: 0644]
jjb/airshipinabottle_deploy/info-airshipinabottle_deploy.yaml [new file with mode: 0644]
jjb/akraino-templates/akraino-icn-templates.yaml [new file with mode: 0644]
jjb/camunda_workflow/info-camunda_workflow.yaml [new file with mode: 0644]
jjb/chomp/info-chomp.yaml [new file with mode: 0644]
jjb/ci-management/ci-packer.yaml
jjb/connected-vehicle/info-connected-vehicle.yaml [new file with mode: 0644]
jjb/eliot/info-eliot.yaml [new file with mode: 0644]
jjb/evp/info-evp.yaml [new file with mode: 0644]
jjb/icn/icn-daaas.yaml [moved from jjb/icn-daaas/icn-daaas.yaml with 64% similarity]
jjb/icn/info-icn.yaml [new file with mode: 0644]
jjb/iec/iec-compass-deploy.sh
jjb/iec/iec.yaml
jjb/iec/info-iec.yaml [new file with mode: 0644]
jjb/kni/info-kni.yaml [new file with mode: 0644]
jjb/mec-api-framework/info-mec-api-framework.yaml [new file with mode: 0644]
jjb/nc/info-nc.yaml [new file with mode: 0644]
jjb/ovs-dpdk-airship/info-ovs-dpdk-airship.yaml [new file with mode: 0644]
jjb/portal/info-portal.yaml [new file with mode: 0644]
jjb/portal_user_interface/info-portal_user_interface.yaml [new file with mode: 0644]
jjb/postgres_db_schema/info-postgres_db_schema.yaml [new file with mode: 0644]
jjb/rec/info-rec.yaml [new file with mode: 0644]
jjb/redfish/info-redfish.yaml [new file with mode: 0644]
jjb/regional_controller/info-regional_controller.yaml [new file with mode: 0644]
jjb/remote-server-os-bootstrap/info-remote-server-os-bootstrap.yaml [new file with mode: 0644]
jjb/repo-beta/info-repo-beta.yaml [new file with mode: 0644]
jjb/sample_vnf/info-sample_vnf.yaml [new file with mode: 0644]
jjb/serverless/info-serverless.yaml [new file with mode: 0644]
jjb/shell/install_go.sh
jjb/starlingx/info-starlingx.yaml [new file with mode: 0644]
jjb/ta/info-ta.yaml [new file with mode: 0644]
jjb/tc/info-tc.yaml [new file with mode: 0644]
jjb/test_automation/info-test_automation.yaml [new file with mode: 0644]
jjb/umec/info-umec.yaml [new file with mode: 0644]
jjb/validation/info-validation.yaml [new file with mode: 0644]
jjb/validation/validation-docker.yaml
jjb/yaml_builds/info-yaml_builds.yaml [new file with mode: 0644]
packer/provision/helm.yaml [new file with mode: 0644]
packer/templates/helm.json [new file with mode: 0644]

diff --git a/jenkins-config/clouds/openstack/cattle/ubuntu1804-helm-8c-32g.cfg b/jenkins-config/clouds/openstack/cattle/ubuntu1804-helm-8c-32g.cfg
new file mode 100644 (file)
index 0000000..b17fdfc
--- /dev/null
@@ -0,0 +1,2 @@
+IMAGE_NAME=ZZCI - Ubuntu 18.04 - helm - x86_64 - 20191207-002613.424
+HARDWARE_ID=v2-highcpu-32
\ No newline at end of file
diff --git a/jjb/addon-onap/info-addon-onap.yaml b/jjb/addon-onap/info-addon-onap.yaml
new file mode 100644 (file)
index 0000000..36a48b9
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: addon-onap-info
+    project-name: addon-onap
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: addon-onap
+    branch: master
diff --git a/jjb/addon-snappy/info-addon-snappy.yaml b/jjb/addon-snappy/info-addon-snappy.yaml
new file mode 100644 (file)
index 0000000..186939d
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: addon-snappy-info
+    project-name: addon-snappy
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: addon-snappy
+    branch: master
diff --git a/jjb/aiedge/info-aiedge.yaml b/jjb/aiedge/info-aiedge.yaml
new file mode 100644 (file)
index 0000000..6761cc1
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: aiedge-info
+    project-name: aiedge
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: aiedge
+    branch: master
diff --git a/jjb/airshipinabottle_deploy/info-airshipinabottle_deploy.yaml b/jjb/airshipinabottle_deploy/info-airshipinabottle_deploy.yaml
new file mode 100644 (file)
index 0000000..c7ffa94
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: airshipinabottle_deploy-info
+    project-name: airshipinabottle_deploy
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: airshipinabottle_deploy
+    branch: master
diff --git a/jjb/akraino-templates/akraino-icn-templates.yaml b/jjb/akraino-templates/akraino-icn-templates.yaml
new file mode 100644 (file)
index 0000000..9b2953c
--- /dev/null
@@ -0,0 +1,133 @@
+---
+#
+# Copyright (c) 2019 Intel Corporation. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+#
+# You may obtain a copy of the License at
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+- daaas_job_boiler_plate: &daaas_job_boiler_plate
+    name: daaas_job_boiler_plate
+    archive-artifacts: >
+      **/*.log
+    build-days-to-keep: 30
+    build-timeout: 60
+    stream: master
+    project-type: freestyle
+    submodule-recursive: true
+    concurrent: true
+    node: "{build-node}"
+
+    properties:
+      - lf-infra-properties:
+          build-days-to-keep: "{build-days-to-keep}"
+
+    parameters:
+      - lf-infra-parameters:
+          project: "{project}"
+          stream: "{stream}"
+          branch: "{branch}"
+          lftools-version: "{lftools-version}"
+
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: "{archive-artifacts}"
+          description: Artifacts to archive to the logs server.
+
+    wrappers:
+      - lf-infra-wrappers:
+          build-timeout: "{build-timeout}"
+          jenkins-ssh-credential: "{jenkins-ssh-credential}"
+
+    scm:
+      - lf-infra-gerrit-scm:
+          jenkins-ssh-credential: "{jenkins-ssh-credential}"
+          git-url: "{git-url}/{project}.git"
+          refspec: "$GERRIT_REFSPEC"
+          branch: "$GERRIT_BRANCH"
+          submodule-recursive: "{submodule-recursive}"
+          submodule-timeout: "{submodule-timeout}"
+          submodule-disable: false
+          choosing-strategy: "gerrit"
+
+    builders:
+      - shell: "{obj:script}"
+
+    publishers:
+      - lf-infra-publish
+
+#################
+# JOB TEMPLATES #
+#################
+- job-template:
+    # Job template for verify jobs
+
+    name: "{project-name}-{stream}-{type}-verify"
+    <<: *daaas_job_boiler_plate
+
+    triggers:
+      - gerrit:
+          server-name: "{gerrit-server-name}"
+          trigger-on:
+            - patchset-created-event:
+                exclude-drafts: "false"
+                exclude-trivial-rebase: "false"
+                exclude-no-code-change: "false"
+            - draft-published-event
+            - comment-added-contains-event:
+                comment-contains-value: "recheck"
+            - comment-added-contains-event:
+                comment-contains-value: "reverify"
+          projects:
+            - project-compare-type: "ANT"
+              project-pattern: "{project}"
+              branches:
+                - branch-compare-type: "ANT"
+                  branch-pattern: "**/{branch}"
+              file-paths:
+                - compare-type: REG_EXP
+                  pattern: ".*/?{path}/.*"
+              disable-strict-forbidden-file-verification: "true"
+              forbidden-file-paths:
+                - compare-type: ANT
+                  pattern: "docs/**"
+          readable-message: true
+
+- job-template:
+    # Job template for merge jobs
+
+    name: "{project-name}-{stream}-{type}-merge"
+    <<: *daaas_job_boiler_plate
+
+    gerrit_merge_triggers:
+      - change-merged-event
+      - comment-added-contains-event:
+          comment-contains-value: remerge$
+
+    triggers:
+      - gerrit:
+          server-name: "{gerrit-server-name}"
+          trigger-on: "{obj:gerrit_merge_triggers}"
+          projects:
+            - project-compare-type: "ANT"
+              project-pattern: "{project}"
+              branches:
+                - branch-compare-type: "ANT"
+                  branch-pattern: "**/{branch}"
+              file-paths:
+                - compare-type: REG_EXP
+                  pattern: ".*/?{path}/.*"
+              disable-strict-forbidden-file-verification: "true"
+              forbidden-file-paths:
+                - compare-type: ANT
+                  pattern: "docs/**"
+          readable-message: true
diff --git a/jjb/camunda_workflow/info-camunda_workflow.yaml b/jjb/camunda_workflow/info-camunda_workflow.yaml
new file mode 100644 (file)
index 0000000..675cb75
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: camunda_workflow-info
+    project-name: camunda_workflow
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: camunda_workflow
+    branch: master
diff --git a/jjb/chomp/info-chomp.yaml b/jjb/chomp/info-chomp.yaml
new file mode 100644 (file)
index 0000000..a55c7b2
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: chomp-info
+    project-name: chomp
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: chomp
+    branch: master
index 2f00039..97dbbf3 100644 (file)
       - ubuntu-16.04
       - ubuntu-18.04
       - ubuntu-18.04-arm64
+
+- project:
+    name: packer-helm-jobs
+    jobs:
+      - gerrit-packer-merge
+
+    packer-version: 1.4.2
+    project: ci-management
+    project-name: ci-management
+    build-node: centos7-builder-2c-1g
+    build-timeout: 90
+
+    platforms:
+      - ubuntu-18.04
+    templates: helm
\ No newline at end of file
diff --git a/jjb/connected-vehicle/info-connected-vehicle.yaml b/jjb/connected-vehicle/info-connected-vehicle.yaml
new file mode 100644 (file)
index 0000000..9542f10
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: connected-vehicle-info
+    project-name: connected-vehicle
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: connected-vehicle
+    branch: master
diff --git a/jjb/eliot/info-eliot.yaml b/jjb/eliot/info-eliot.yaml
new file mode 100644 (file)
index 0000000..2ac98c3
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: eliot-info
+    project-name: eliot
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: eliot
+    branch: master
diff --git a/jjb/evp/info-evp.yaml b/jjb/evp/info-evp.yaml
new file mode 100644 (file)
index 0000000..65665cb
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: evp-info
+    project-name: evp
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: evp
+    branch: master
similarity index 64%
rename from jjb/icn-daaas/icn-daaas.yaml
rename to jjb/icn/icn-daaas.yaml
index 332c4aa..6bbcbd3 100644 (file)
     name: icn-daaas
     project: 'icn/daaas'
     project-name: icn-daaas
-    build-node: icn-dev
+    build-node: ubuntu1804-helm-8c-32g
     stream:
       - master:
           branch: master
+    type:
+      - golang:
+          path: microservices
+          script: |-
+            #!/bin/bash
+            cd $WORKSPACE/microservices
+            make all
+      - helm:
+          path: deploy
+          script: |-
+            #!/bin/bash
+            cd $WORKSPACE/deploy
+            make all
     jobs:
-      - akraino-project-stream-verify
+      - "{project-name}-{stream}-{type}-verify"
+      - "{project-name}-{stream}-{type}-merge"
     views:
       - project-view
diff --git a/jjb/icn/info-icn.yaml b/jjb/icn/info-icn.yaml
new file mode 100644 (file)
index 0000000..8a81a52
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: icn-info
+    project-name: icn
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: icn
+    branch: master
index 8cdb65e..9db4c0b 100755 (executable)
@@ -30,6 +30,10 @@ modify_workdir(){
   ln -sfn $(pwd)/work $COMPASS_WORK_DIR
 
   sed -i "s#\$COMPASS_DIR/work#$COMPASS_WORK_DIR#g" deploy/launch.sh
+
+  # Fix docker-compose -> requests version mismatch with other
+  # Akraino CI jobs (installed requests should be >= 2.12)
+  sed -i "s/\(docker-compose\)==1.14.0/\1==1.24.1/g" deploy/prepare.sh
 }
 
 config_vm
index 86752e1..a0e179f 100644 (file)
       - 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
       - 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
       - 'iec-{iecType}-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
+      - gerrit-sonar:
+          sonar-project-file: ""
+          build-node: centos7-builder-2c-1g
+          sonar-properties: |
+            # Required metadata
+            sonar.projectKey=iec
+            sonar.projectName=iec
+            sonar.organization=akraino-edge-stack
+
+            #Source
+            sonar.sources=.
+            sonar.exclusions=**/*_test.go,**/vendor/**
+
+            # Language
+            sonar.language=go
+
+            # Encoding
+            sonar.build.sourceEncoding=UTF-8
+
+            # Inclusions
+            sonar.inclusions=**/**.go
+
+            # Test Execution
+            sonar.tests=.
+            sonar.test.inclusions=**/*_test.go
+            sonar.test.exclusions=**/vendor/**
+
+            # Unit tests
+            sonar.go.coverage.reportPaths=iec-coverage.xml
+            sonar.go.tests.reportPaths=iec-tests.xml
+
+            # Importing External Issues
+            sonar.go.govet.reportPaths=iec-govet.xml
+            sonar.go.golint.reportPaths=iec-golint.xml
+            sonar.go.gometalinter.reportPaths=iec-gometalinter.xml
+            sonar.go.golangci-lint.reportPaths=iec-golangci-lint.xml
 
 ##############
 # PARAMETERS #
 
     publishers: *publishers
 
+
 ########################
 # trigger macros
 ########################
diff --git a/jjb/iec/info-iec.yaml b/jjb/iec/info-iec.yaml
new file mode 100644 (file)
index 0000000..9046591
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: iec-info
+    project-name: iec
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: iec
+    branch: master
diff --git a/jjb/kni/info-kni.yaml b/jjb/kni/info-kni.yaml
new file mode 100644 (file)
index 0000000..f5192ec
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: kni-info
+    project-name: kni
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: kni
+    branch: master
diff --git a/jjb/mec-api-framework/info-mec-api-framework.yaml b/jjb/mec-api-framework/info-mec-api-framework.yaml
new file mode 100644 (file)
index 0000000..d0feec8
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: mec-api-framework-info
+    project-name: mec-api-framework
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: mec-api-framework
+    branch: master
diff --git a/jjb/nc/info-nc.yaml b/jjb/nc/info-nc.yaml
new file mode 100644 (file)
index 0000000..f5acd74
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: nc-info
+    project-name: nc
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: nc
+    branch: master
diff --git a/jjb/ovs-dpdk-airship/info-ovs-dpdk-airship.yaml b/jjb/ovs-dpdk-airship/info-ovs-dpdk-airship.yaml
new file mode 100644 (file)
index 0000000..9757c49
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: ovs-dpdk-airship-info
+    project-name: ovs-dpdk-airship
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: ovs-dpdk-airship
+    branch: master
diff --git a/jjb/portal/info-portal.yaml b/jjb/portal/info-portal.yaml
new file mode 100644 (file)
index 0000000..9d04cd9
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: portal-info
+    project-name: portal
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: portal
+    branch: master
diff --git a/jjb/portal_user_interface/info-portal_user_interface.yaml b/jjb/portal_user_interface/info-portal_user_interface.yaml
new file mode 100644 (file)
index 0000000..a34ae1e
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: portal_user_interface-info
+    project-name: portal_user_interface
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: portal_user_interface
+    branch: master
diff --git a/jjb/postgres_db_schema/info-postgres_db_schema.yaml b/jjb/postgres_db_schema/info-postgres_db_schema.yaml
new file mode 100644 (file)
index 0000000..9d0bc74
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: postgres_db_schema-info
+    project-name: postgres_db_schema
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: postgres_db_schema
+    branch: master
diff --git a/jjb/rec/info-rec.yaml b/jjb/rec/info-rec.yaml
new file mode 100644 (file)
index 0000000..b6ddb55
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: rec-info
+    project-name: rec
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: rec
+    branch: master
diff --git a/jjb/redfish/info-redfish.yaml b/jjb/redfish/info-redfish.yaml
new file mode 100644 (file)
index 0000000..acd0306
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: redfish-info
+    project-name: redfish
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: redfish
+    branch: master
diff --git a/jjb/regional_controller/info-regional_controller.yaml b/jjb/regional_controller/info-regional_controller.yaml
new file mode 100644 (file)
index 0000000..5752ef2
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: regional_controller-info
+    project-name: regional_controller
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: regional_controller
+    branch: master
diff --git a/jjb/remote-server-os-bootstrap/info-remote-server-os-bootstrap.yaml b/jjb/remote-server-os-bootstrap/info-remote-server-os-bootstrap.yaml
new file mode 100644 (file)
index 0000000..03b2903
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: remote-server-os-bootstrap-info
+    project-name: remote-server-os-bootstrap
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: remote-server-os-bootstrap
+    branch: master
diff --git a/jjb/repo-beta/info-repo-beta.yaml b/jjb/repo-beta/info-repo-beta.yaml
new file mode 100644 (file)
index 0000000..d83f54f
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: repo-beta-info
+    project-name: repo-beta
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: repo-beta
+    branch: master
diff --git a/jjb/sample_vnf/info-sample_vnf.yaml b/jjb/sample_vnf/info-sample_vnf.yaml
new file mode 100644 (file)
index 0000000..d9fb428
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: sample_vnf-info
+    project-name: sample_vnf
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: sample_vnf
+    branch: master
diff --git a/jjb/serverless/info-serverless.yaml b/jjb/serverless/info-serverless.yaml
new file mode 100644 (file)
index 0000000..732d0b2
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: serverless-info
+    project-name: serverless
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: serverless
+    branch: master
index a9f6ffd..d5b344c 100755 (executable)
@@ -19,7 +19,7 @@ if [ -z "${GO_URL}" ]; then
 fi
 
 if [ -z "${GO_VERSION}" ]; then
-    GO_VERSION='go1.12.linux-amd64.tar.gz'
+    GO_VERSION='go1.13.4.linux-amd64.tar.gz'
 fi
 
 set -e -u -x -o pipefail
@@ -28,4 +28,5 @@ echo "---> Installing golang from ${GO_URL} with version ${GO_VERSION}"
 
 # install go
 wget ${GO_URL}/${GO_VERSION}
+sudo rm -rf /usr/local/go
 sudo tar -C /usr/local -xzf ${GO_VERSION}
diff --git a/jjb/starlingx/info-starlingx.yaml b/jjb/starlingx/info-starlingx.yaml
new file mode 100644 (file)
index 0000000..072d4ec
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: starlingx-info
+    project-name: starlingx
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: starlingx
+    branch: master
diff --git a/jjb/ta/info-ta.yaml b/jjb/ta/info-ta.yaml
new file mode 100644 (file)
index 0000000..b72d743
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: ta-info
+    project-name: ta
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: ta
+    branch: master
diff --git a/jjb/tc/info-tc.yaml b/jjb/tc/info-tc.yaml
new file mode 100644 (file)
index 0000000..7e07c4b
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: tc-info
+    project-name: tc
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: tc
+    branch: master
diff --git a/jjb/test_automation/info-test_automation.yaml b/jjb/test_automation/info-test_automation.yaml
new file mode 100644 (file)
index 0000000..bc8b29b
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: test_automation-info
+    project-name: test_automation
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: test_automation
+    branch: master
diff --git a/jjb/umec/info-umec.yaml b/jjb/umec/info-umec.yaml
new file mode 100644 (file)
index 0000000..190bdee
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: umec-info
+    project-name: umec
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: umec
+    branch: master
diff --git a/jjb/validation/info-validation.yaml b/jjb/validation/info-validation.yaml
new file mode 100644 (file)
index 0000000..132229d
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: validation-info
+    project-name: validation
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: validation
+    branch: master
index 14aac1c..d145cf3 100644 (file)
@@ -8,7 +8,7 @@
           branch: '{stream}'
           refs_tag: 'heads'
           disabled: false
-      - 2.0.0:
+      - 2.0.1:
           branch: 'master'
           refs_tag: 'tags'
           disabled: false
diff --git a/jjb/yaml_builds/info-yaml_builds.yaml b/jjb/yaml_builds/info-yaml_builds.yaml
new file mode 100644 (file)
index 0000000..0f106b9
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- project:
+    name: yaml_builds-info
+    project-name: yaml_builds
+    build-node: centos7-builder-2c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+    project: yaml_builds
+    branch: master
diff --git a/packer/provision/helm.yaml b/packer/provision/helm.yaml
new file mode 100644 (file)
index 0000000..57bd951
--- /dev/null
@@ -0,0 +1,59 @@
+---
+- import_playbook: ../common-packer/provision/docker.yaml
+
+- hosts: all
+  become_user: root
+  become_method: sudo
+
+  vars:
+    golang_version: 1.13.5
+    helm_version: 2.16.1
+    kubectl_version: 1.16.3
+    golang_checksum: sha256:512103d7ad296467814a6e3f635631bd35574cab3369a97a323c9a585ccaa569
+
+  tasks:
+    - name: "Install GoLang {{golang_version}}"
+      block:
+        - name: "Fetch golang {{golang_version}} to /tmp/go{{golang_version}}.linux-amd64.tar.gz"
+          get_url:
+            url: "https://storage.googleapis.com/golang/go{{golang_version}}.linux-amd64.tar.gz"
+            dest: "/tmp/go{{golang_version}}.linux-amd64.tar.gz"
+            checksum: "{{golang_checksum}}"
+        - name: "Install golang {{golang_version}} to /usr/local"
+          unarchive:
+            src: "/tmp/go{{golang_version}}.linux-amd64.tar.gz"
+            dest: /usr/local
+            remote_src: true
+          become: true
+        - name: Create symbolic link to go bin
+          file:
+            src: "/usr/local/go/bin/go"
+            dest: "/usr/bin/go"
+            state: link
+          become: true
+    - name: "Install kubectl {{kubectl_version}}"
+      get_url:
+        url: https://storage.googleapis.com/kubernetes-release/release/v{{kubectl_version}}/bin/linux/amd64/kubectl
+        dest: /usr/local/bin/kubectl
+        mode: 0775
+      become: yes
+
+    - name: "Install Helm {{helm_version}}"
+      block:
+        - name: "Fetch tar.gz"
+          get_url:
+            url: https://get.helm.sh/helm-v{{helm_version}}-linux-amd64.tar.gz
+            dest: /tmp/helm-v{{helm_version}}-linux-amd64.tar.gz
+        - name: "Unarchive"
+          unarchive:
+            src: /tmp/helm-v{{helm_version}}-linux-amd64.tar.gz
+            dest: /tmp
+            remote_src: true
+          become: yes
+        - name: "Move helm to /usr/local/bin and set as executable"
+          command: "mv /tmp/linux-amd64/helm /usr/local/bin/helm"
+          become: yes
+        - name: "Check helm."
+          command: "which helm"
+        - name: "Check kubectl."
+          command: "which kubectl"
diff --git a/packer/templates/helm.json b/packer/templates/helm.json
new file mode 100644 (file)
index 0000000..020bb0a
--- /dev/null
@@ -0,0 +1,62 @@
+{
+  "variables": {
+    "ansible_roles_path": ".galaxy",
+    "arch": "x86_64",
+    "base_image": null,
+    "cloud_network": null,
+    "cloud_user_data": null,
+    "cloud_region": "ca-ymq-1",
+    "cloud_availability_zone": "ca-ymq-2",
+    "vm_use_block_storage": "true",
+    "vm_volume_size": "30",
+    "vm_image_disk_format": "",
+    "distro": null,
+    "flavor": "v1-standard-1",
+    "ssh_user": null,
+    "ssh_proxy_host": ""
+  },
+  "builders": [
+    {
+      "name": "vexxhost",
+      "image_name": "ZZCI - {{user `distro`}} - helm - {{user `arch`}} - {{isotime \"20060102-150405.000\"}}",
+      "instance_name": "{{user `distro`}}-builder-{{uuid}}",
+      "source_image_name": "{{user `base_image`}}",
+      "type": "openstack",
+      "region": "{{user `cloud_region`}}",
+      "availability_zone": "{{user `cloud_availability_zone`}}",
+      "networks": ["{{user `cloud_network`}}"],
+      "user_data_file": "{{user `cloud_user_data`}}",
+      "ssh_username": "{{user `ssh_user`}}",
+      "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+      "flavor": "{{user `flavor`}}",
+      "metadata": {
+        "ci_managed": "yes"
+      },
+      "use_blockstorage_volume": "{{user `vm_use_block_storage`}}",
+      "volume_size": "{{user `vm_volume_size`}}",
+      "image_disk_format": "{{user `vm_image_disk_format`}}"
+    }
+  ],
+  "provisioners": [
+    {
+      "type": "shell",
+      "scripts": ["common-packer/provision/install-python.sh"],
+      "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
+    },
+    {
+      "type": "shell-local",
+      "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
+    },
+    {
+      "type": "ansible",
+      "playbook_file": "provision/helm.yaml",
+      "ansible_env_vars": [
+        "ANSIBLE_NOCOWS=1",
+        "ANSIBLE_PIPELINING=True",
+        "ANSIBLE_ROLES_PATH={{user `ansible_roles_path`}}",
+        "ANSIBLE_CALLBACK_WHITELIST=profile_tasks",
+        "ANSIBLE_STDOUT_CALLBACK=debug"
+      ]
+    }
+  ]
+}