[SDC] Use default template for CSIT jobs 74/118374/2
authorChrisC <christophe.closset@intl.att.com>
Wed, 24 Feb 2021 11:57:18 +0000 (12:57 +0100)
committerChrisC <christophe.closset@intl.att.com>
Wed, 24 Feb 2021 19:00:39 +0000 (20:00 +0100)
Revert from using integration templates for CSIT
Use default verify-java template but keep split of jobs to save on running time
Merge job is back to single job as we don't need // for merge

Issue-ID: SDC-3465
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: I84a62d66a4aea8f0854e1202984a689bb3f5c58f

jjb/sdc/sdc-csit.yaml
jjb/sdc/sdc.yaml

index b943c9f..40cf78c 100644 (file)
@@ -2,14 +2,11 @@
 - project:
       name: sdc-csit
       jobs:
-          - '{project-name}-review-verification-maven-{stream}':
-                build-node: ubuntu1804-docker-8c-16g
-                container-public-registry: 'nexus3.onap.org:10001'
-                container-snapshot-registry: 'nexus3.onap.org:10003'
+          - '{project-name}-{stream}-verify-java':
+                # this build is integration test only - CSIT (Verify 2/2)
                 mvn-goals: clean install
                 mvn-params: '-Dnpm.registry=https://nexus3.onap.org/repository/npm.public/ -Ddocker.skip.push=true -P docker,all-for-integration-tests-only'
-                maven-versions-plugin: true
-                build-concurrent: true
+                build-node: 'ubuntu1804-docker-8c-16g'
                 archive-artifacts: >
                     **/*.log
                     **/hs_err_*.log
                     /tmp/sdc-integration-tests/SDC/ONBOARDING-BE/*.log
                     /tmp/sdc-integration-tests/SDC/SDC-BE/*.log
                     /tmp/sdc-integration-tests/SDC/SDC-FE/*.log
-          - '{project-name}-merge-verification-maven-{stream}':
-                build-node: ubuntu1804-docker-8c-16g
-                container-public-registry: 'nexus3.onap.org:10001'
-                container-snapshot-registry: 'nexus3.onap.org:10003'
-                mvn-goals: clean install
-                mvn-params: '-Dnpm.registry=https://nexus3.onap.org/repository/npm.public/ -Ddocker.skip.push=true -P docker,all-for-integration-tests-only'
-                maven-versions-plugin: true
-
-      project-name: 'sdc'
-      recipients: 'christophe.closset@intl.att.com'
+      project-name: 'sdc-integration-tests'
       # project name in gerrit
       project: 'sdc'
       stream:
           - 'master':
                 branch: 'master'
-          - 'guilin':
-                branch: 'guilin'
       java-version: openjdk11
       mvn-version: 'mvn36'
       mvn-settings: 'sdc-settings'
       mvn-global-settings: global-settings
-      robot-options: ''
-      branch: 'master'
-
-#- project:
-#    name: sdc-csit-arm64
-#    jobs:
-#      - '{project-name}-arm64-{stream}-verify-csit-{functionality}-testng'
-#      - '{project-name}-arm64-{stream}-csit-{functionality}-testng'
-#    project-name: 'sdc'
-#    stream:
-#      - 'master':
-#          branch: 'master'
-#    functionality:
-#      - 'sanity':
-#          trigger_jobs: '{project-name}-{stream}-sdc-merge-java'
-#      - 'nightly':
-#          trigger_jobs: '{project-name}-{stream}-docker-version-java-daily'
-#      - 'uiSanity':
-#          trigger_jobs: '{project-name}-{stream}-docker-version-java-daily'
-#    robot-options: ''
-#    branch: 'master'
-#    html-dir: 'archives'
-#    html-files: 'SDC_CI_Extent_Report.html'
index de4ece0..1d81402 100644 (file)
     project-name: 'sdc'
     jobs:
       - '{project-name}-{stream}-verify-java':
+          # this build is unit test only (Verify 1/2)
           mvn-params: '-P skip-integration-tests -Dnpm.registry=https://nexus3.onap.org/repository/npm.public/'
           build-node: 'ubuntu1804-docker-8c-8g'
       - '{project-name}-{stream}-sdc-merge-java':
-          build-node: 'ubuntu1804-docker-8c-8g'
+          build-node: 'ubuntu1804-docker-8c-16g'
           docker-pom: 'pom.xml'
-          mvn-profile: 'skip-integration-tests'
+          mvn-profile: 'docker'
           mvn-params: '-Dnpm.registry=https://nexus3.onap.org/repository/npm.public/'
+          # running everything (unit tests and integration tests in a single job for merge, as we don't need // run
+          # for merge, but still saving integration tests results and report.
+          archive-artifacts: >
+              **/*.log
+              **/hs_err_*.log
+              **/target/**/feature.xml
+              **/target/failsafe-reports/failsafe-summary.xml
+              **/target/surefire-reports/*-output.txt
+              integration-tests/target/ExtentReport/API/*.html
+              integration-tests/target/ExtentReport/UI/*.html
+              integration-tests/target/ExtentReport/UI/screenshots/*.png
+              /tmp/sdc-integration-tests/*.log*
+              /tmp/sdc-integration-tests/SDC/ONBOARDING-BE/*.log
+              /tmp/sdc-integration-tests/SDC/SDC-BE/*.log
+              /tmp/sdc-integration-tests/SDC/SDC-FE/*.log
       - gerrit-maven-stage:
           build-timeout: 90
           sign-artifacts: true