Merge "Migrate DCAE to SonarCloud"
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 7 Feb 2020 22:14:05 +0000 (22:14 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 7 Feb 2020 22:14:05 +0000 (22:14 +0000)
global-jjb
jjb/aaf/aaf-certservice.yaml [new file with mode: 0644]
jjb/integration/integration-macros.yaml
jjb/integration/integration-templates.yaml [new file with mode: 0644]
jjb/integration/integration.yaml
jjb/integration/vagrantfile-verify.sh [new file with mode: 0644]
jjb/rtdv3/rtdv3.yaml
jjb/testsuite/testsuite-oom.yaml [new file with mode: 0644]

index 1fb55e8..f098976 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1fb55e807d49e36b27d94d0c411c6907d2216068
+Subproject commit f09897651a64bbfa1d3424ca58d09cbb2af382cf
diff --git a/jjb/aaf/aaf-certservice.yaml b/jjb/aaf/aaf-certservice.yaml
new file mode 100644 (file)
index 0000000..6f73acc
--- /dev/null
@@ -0,0 +1,62 @@
+---
+- project:
+    name: aaf-certservice
+    project-name: 'aaf-certservice'
+    subproject: 'aaf-certservice-ws'
+    path: 'certService'
+    java-version: openjdk11
+    jobs:
+      - '{project-name}-{stream}-verify-java'
+      - '{project-name}-{stream}-merge-java'
+      - gerrit-maven-stage:
+          sign-artifacts: true
+          build-node: centos7-docker-8c-8g
+          maven-versions-plugin: true
+          mvn-pom: 'certService/pom.xml'
+      - '{project-name}-gerrit-release-jobs':
+          build-node: centos7-docker-8c-8g
+
+    project: 'aaf/certservice'
+    stream:
+      - 'master':
+          branch: 'master'
+    mvn-settings: 'aaf-certservice-settings'
+    # due to a strange macro / variable translation problem this needs
+    # to be passed as a string block to properly get the properties
+    # correctly defined in the job
+    maven-deploy-properties: |
+      deployAtEnd=true
+    files: '**'
+    archive-artifacts: ''
+    build-node: 'ubuntu1604-docker-8c-8g'
+
+- project:
+    name: aaf-certservice-sonar
+    subproject: 'aaf-certservice-ws'
+    path: 'certService'
+    java-version: openjdk11
+    jobs:
+      - gerrit-maven-sonar
+    sonarcloud: true
+    sonarcloud-project-organization: '{sonarcloud_project_organization}'
+    sonarcloud-api-token: '{sonarcloud_api_token}'
+    sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
+    sonar-mvn-goal: '{sonar_mvn_goal}'
+    cron: '@daily'
+    build-node: ubuntu1604-docker-8c-8g
+    project: 'aaf/certservice'
+    project-name: 'aaf-certservice'
+    branch: 'master'
+    mvn-settings: 'aaf-certservice-settings'
+    mvn-pom: 'certService/pom.xml'
+    mvn-goals: 'clean install'
+    mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
+
+- project:
+    name: aaf-certservice-info
+    project-name: aaf-certservice
+    jobs:
+      - gerrit-info-yaml-verify
+    build-node: centos7-builder-2c-1g
+    project: aaf/certservice
+    branch: master
index 23eaae6..677e7e0 100644 (file)
     builders:
       - shell: "${WORKSPACE}/autorelease/scripts/set-version.sh"
 
+- builder:
+    name: integration-install-vagrant
+    builders:
+      - shell: |
+          #!/bin/bash
+          set -ex # Fail build if any setup step fails
+          add-apt-repository --yes ppa:tiagohillebrandt/vagrant
+          apt update
+          apt --yes install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev vagrant
+          vagrant plugin install vagrant-libvirt
+          vagrant plugin install vagrant-disksize
+          mkdir -p ~/.ssh
+
 - publisher:
     name: integration-robot
     publishers:
diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml
new file mode 100644 (file)
index 0000000..5d07b31
--- /dev/null
@@ -0,0 +1,45 @@
+---
+- job-template:
+    # Job template for verifying Vagrantfiles
+    #
+    # The purpose of this job template is to run:
+    # vagrant validate
+
+    name: '{project-name}-{stream}-verify-vagrantfile'
+    project-type: freestyle
+    description: 'Job intended for validating vagrantfiles'
+    node: 'ubuntu1604-builder-2c-1g.cfg'
+
+    parameters:
+      - lf-infra-parameters:
+          project: '{project}'
+          stream: '{stream}'
+          branch: '{branch}'
+
+    properties:
+      - infra-properties:
+          build-days-to-keep: '{build-days-to-keep}'
+
+    scm:
+      - gerrit-trigger-scm:
+          refspec: '$GERRIT_REFSPEC'
+          choosing-strategy: 'gerrit'
+          submodule-recursive: '{submodule-recursive}'
+
+    wrappers:
+      - infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      - gerrit-trigger-patch-submitted:
+          server: '{server-name}'
+          project: '{project}'
+          branch: '{branch}'
+          files: '**/Vagrantfile'
+
+    builders:
+      - integration-install-vagrant
+      - shell: !include-raw-escape: 'vagrantfile-verify.sh'
+
+    publishers:
+      - lf-infra-publish
index 0d496e3..31bda6e 100644 (file)
     mvn-settings: 'integration-settings'
     build-node: 'centos7-builder-4c-4g'
     subproject:
-      - 'test/vcpe':
+      - 'test-vcpe':
           path: 'test/vcpe'
           pattern: 'test/vcpe/**'
     jobs:
       - '{project-name}-{stream}-{subproject}-verify-python'
+
+- project:
+    name: integration-verify-vagrantfile
+    project-name: 'integration'
+    project: 'integration'
+
+    stream:
+      - 'master':
+          branch: 'master'
+
+    jobs:
+      - '{project-name}-{stream}-verify-vagrantfile'
diff --git a/jjb/integration/vagrantfile-verify.sh b/jjb/integration/vagrantfile-verify.sh
new file mode 100644 (file)
index 0000000..6af0a9d
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Copyright 2020 Samsung Electronics Co., Ltd.
+#
+# 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.
+
+echo "---> vagrantfile-verify.sh"
+
+set -e
+
+declare -a CHANGED_VAGRANTFILES
+CMD='vagrant validate'
+
+CHANGED_VAGRANTFILES=(`git diff HEAD^ HEAD --name-only "*Vagrantfile"`)
+
+for v_dir in ${CHANGED_VAGRANTFILES[@]};
+do
+  echo "---> Validating ./$v_dir"
+  pushd $(dirname $v_dir)
+  eval "$CMD"
+  popd
+done
index 24b086a..017218a 100644 (file)
@@ -15,6 +15,7 @@
     name: rtdv3-global
     default-version: latest
     tox-dir: "docs/"
+    doc-dir: "_build/html"
     build-node: centos7-builder-2c-1g
     # override the default to ignore ref-updated-event (tag)
     gerrit_merge_triggers:
diff --git a/jjb/testsuite/testsuite-oom.yaml b/jjb/testsuite/testsuite-oom.yaml
new file mode 100644 (file)
index 0000000..40b281a
--- /dev/null
@@ -0,0 +1,10 @@
+---
+- project:
+    name: testsuite-oom
+    project-name: testsuite-oom
+    jobs:
+      - gerrit-info-yaml-verify
+    build-node: centos7-builder-2c-1g
+    project: testsuite/oom
+    branch: master
+