Dump all logs as last steps 22/69422/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 22 Dec 2019 15:11:05 +0000 (16:11 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 22 Dec 2019 15:27:56 +0000 (16:27 +0100)
It follows the Kubernetes Conformance model to third-party
certifications.

Change-Id: Idd3a04567ed19c8b53f4635530fda5bd94d00734
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jjb/airship/airship.yaml
jjb/airship/cntt.yaml

index 21cc45d..b343e80 100644 (file)
     jobs:
       - 'airship-{repo}-{container}-{tag}-{test}-run'
 
+- builder:
+    name: airship-zip
+    builders:
+      - shell: |
+          set +x
+          [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+          if [ "{repo}" = "_" ]; then
+            image={container}:{functest_tag}
+          elif [ "{port}" = "None" ]; then
+            image={repo}/{container}:{functest_tag}
+          else
+            image={repo}:{port}/{container}:{functest_tag}
+          fi
+          docker run --rm \
+            -e S3_ENDPOINT_URL=https://storage.googleapis.com \
+            -e S3_DST_URL=s3://artifacts.opnfv.org/airship \
+            -e HTTP_DST_URL=http://artifacts.opnfv.org/airship/ \
+            -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
+            -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
+            -e BUILD_TAG=$BUILD_TAG \
+            -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+            $image zip_campaign
+
+- job-template:
+    name: 'airship-{tag}-zip'
+    parameters:
+      - airship-build_tag:
+          build_tag: ''
+    builders:
+      - airship-zip:
+          <<: *airship-containers
+
+- project:
+    name: 'airship-{tag}-zip'
+    <<: *airship-params
+    container: 'functest-healthcheck'
+    jobs:
+      - 'airship-{tag}-zip'
+
 - job-template:
     name: 'airship-{tag}-daily'
     project-type: multijob
               <<: *airship-jobs
             - name: 'airship-opnfv-functest-vnf-{tag}-juju_epc-run'
               <<: *airship-jobs
+      - multijob:
+          name: dump all campaign data
+          projects:
+            - name: 'airship-{tag}-zip'
+              <<: *airship-jobs
 
 - trigger:
     name: airship-patchset-created
index f39ea42..94cfd4b 100644 (file)
     jobs:
       - 'cntt-{repo}-{container}-{tag}-{test}-run'
 
+- builder:
+    name: cntt-zip
+    builders:
+      - shell: |
+          set +x
+          [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+          if [ "{repo}" = "_" ]; then
+            image={container}:{functest_tag}
+          elif [ "{port}" = "None" ]; then
+            image={repo}/{container}:{functest_tag}
+          else
+            image={repo}:{port}/{container}:{functest_tag}
+          fi
+          docker run --rm \
+            -e S3_ENDPOINT_URL=https://storage.googleapis.com \
+            -e S3_DST_URL=s3://artifacts.opnfv.org/airship \
+            -e HTTP_DST_URL=http://artifacts.opnfv.org/airship/ \
+            -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
+            -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
+            -e BUILD_TAG=$BUILD_TAG \
+            -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+            $image zip_campaign
+
+- job-template:
+    name: 'cntt-{tag}-zip'
+    parameters:
+      - cntt-build_tag:
+          build_tag: ''
+    builders:
+      - cntt-zip:
+          <<: *cntt-containers
+
+- project:
+    name: 'cntt-{tag}-zip'
+    <<: *cntt-params
+    container: 'functest-healthcheck'
+    jobs:
+      - 'cntt-{tag}-zip'
+
 - job-template:
     name: 'cntt-{tag}-daily'
     project-type: multijob
               <<: *cntt-jobs
             - name: 'cntt-opnfv-functest-vnf-{tag}-juju_epc-run'
               <<: *cntt-jobs
+      - multijob:
+          name: dump all campaign data
+          projects:
+            - name: 'cntt-{tag}-zip'
+              <<: *cntt-jobs
 
 - trigger:
     name: cntt-patchset-created