[POLICY] Change CSIT trigger to verify job
[ci-management.git] / jjb / integration / integration-docker.yaml
index 3062b00..907fea1 100644 (file)
 ---
 - project:
     name: integration-docker
-    project-name: 'integration'
+    project-name: "integration"
     jobs:
-      - '{project-name}-{stream}-{subproject}-docker-merge'
-      - '{project-name}-{stream}-{subproject}-docker-verify'
-    project: 'integration'
+      - integration-docker-merge
+      - integration-docker-verify
+    project: "integration"
     stream:
-      - 'master':
-          branch: 'master'
+      - "master":
+          branch: "master"
     subproject:
-      - 'sniroemulator':
-          pom: 'test/mocks/sniroemulator/pom.xml'
-          pattern: 'test/mocks/sniroemulator/**'
-      - 'pnfsimulator':
-          pom: 'test/mocks/pnfsimulator/pnfsimulator/pom.xml'
-          pattern: 'test/mocks/pnfsimulator/pnfsimulator/**'
-      - 'netconfsimulator':
-          pom: 'test/mocks/pnfsimulator/netconfsimulator/pom.xml'
-          pattern: 'test/mocks/pnfsimulator/netconfsimulator/**'
-    mvn-settings: 'integration-settings'
-    files: '**'
-    archive-artifacts: ''
+      - "aai-simulator":
+          pom: "test/mocks/aai-simulator/pom.xml"
+          pattern: "test/mocks/aai-simulator/**"
+          mvn-goals: "mvn clean install -Dcheckstyle.skip"
+      - "sniroemulator":
+          pom: "test/mocks/sniroemulator/pom.xml"
+          pattern: "test/mocks/sniroemulator/**"
+    mvn-settings: "integration-settings"
+    files: "**"
+    archive-artifacts: ""
 
 - project:
     name: integration-netconf-pnp-simulator
     project: integration
     stream:
-      - 'master':
-          branch: 'master'
+      - "master":
+          branch: "master"
     # Required by verifier
-    mvn-settings: 'integration-settings'
-    project-name: 'integration-netconf-pnp-simulator'
+    mvn-settings: "integration-settings"
+    project-name: "integration-netconf-pnp-simulator"
     gerrit_trigger_file_paths:
       - compare-type: ANT
-        pattern: 'test/mocks/netconf-pnp-simulator/engine/**'
-    docker-name: 'onap/integration/simulators/netconf-pnp-simulator'
+        pattern: "test/mocks/netconf-pnp-simulator/engine/**"
+    docker-name: "onap/integration/simulators/netconf-pnp-simulator"
     docker-root: test/mocks/netconf-pnp-simulator/engine
     container-tag-method: yaml-file
-    post_docker_build_script: !include-raw-escape: ../global-jjb/shell/tox-run.sh
-    build-node: centos7-docker-8c-8g
+    post_docker_build_script: |
+      #!/bin/bash
+      set -eux
+      cd "$DOCKER_ROOT"
+      # To simplify the references inside tox.ini and tests/settings.py
+      docker tag "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" netconf-pnp-simulator:latest
+      tox
+    build-node: ubuntu1804-docker-8c-8g
+    build-timeout: 20
+    jobs:
+      - gerrit-docker-verify
+      - gerrit-docker-merge
+
+- project:
+    name: integration-ran-nssmf-simulator
+    project: integration
+    stream:
+      - "master":
+          branch: "master"
+    # Required by verifier
+    mvn-settings: "integration-settings"
+    project-name: "integration-ran-nssmf-simulator"
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: "test/mocks/ran-nssmf-simulator/.*"
+    docker-name: "onap/ran-nssmf-simulator"
+    docker-root: test/mocks/ran-nssmf-simulator
+    container-tag-method: yaml-file
+    post_docker_build_script: |
+      #!/bin/bash
+      set -eux
+      cd "$DOCKER_ROOT"
+      # To simplify the references inside tox.ini and tests/settings.py
+      docker tag "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" ran-nssmf-simulator:latest
+      tox
+    build-node: ubuntu1804-docker-8c-8g
+    build-timeout: 20
+    jobs:
+      - gerrit-docker-verify
+      - gerrit-docker-merge
+
+- project:
+    name: integration-k8s-toolbox
+    project: integration
+    stream:
+      - "master":
+          branch: "master"
+    # Required by verifier
+    mvn-settings: "integration-settings"
+    project-name: "integration-k8s-toolbox"
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: "pipelines/docker-onap-k8s-toolbox/.*"
+    docker-name: "onap/k8s-toolbox"
+    docker-root: pipelines/docker-onap-k8s-toolbox
+    container-tag-method: yaml-file
+    post_docker_build_script: |
+      #!/bin/bash
+      set -eux
+      cd "$DOCKER_ROOT"
+      docker tag "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" onap-k8s-toolbox:latest
+    build-node: ubuntu1804-docker-8c-8g
     build-timeout: 20
     jobs:
       - gerrit-docker-verify