Merge "Run integration test after docker image is build"
[ci-management.git] / jjb / integration / integration-docker.yaml
1 ---
2 - project:
3     name: integration-docker
4     project-name: 'integration'
5     jobs:
6       - integration-docker-merge
7       - integration-docker-verify
8     project: 'integration'
9     stream:
10       - 'master':
11           branch: 'master'
12     subproject:
13       - 'sniroemulator':
14           pom: 'test/mocks/sniroemulator/pom.xml'
15           pattern: 'test/mocks/sniroemulator/**'
16       - 'mass-pnf-sim':
17           pom: 'test/mocks/mass-pnf-sim/pnf-sim-lightweight/pom.xml'
18           pattern: 'test/mocks/mass-pnf-sim/**'
19           mvn-goals: 'clean package docker:build -Dcheckstyle.skip'
20           PNF_INSTANCES: 1
21           post-docker-verify-script: |
22               #!/bin/bash
23               set -ex # Fail build if any setup step fails
24               cd $WORKSPACE/test/mocks/mass-pnf-sim
25               ./mass-pnf-sim.py bootstrap --count {PNF_INSTANCES} --urlves http://127.0.0.1:10000/eventListener/v7 --ipfileserver 127.0.0.1 --typefileserver sftp --ipstart 10.11.0.16
26               ./mass-pnf-sim.py start --count {PNF_INSTANCES}
27               ./mass-pnf-sim.py trigger --count {PNF_INSTANCES}
28               ./mass-pnf-sim.py status --count {PNF_INSTANCES}
29               ./mass-pnf-sim.py stop --count {PNF_INSTANCES}
30               ./mass-pnf-sim.py clean
31     mvn-settings: 'integration-settings'
32     files: '**'
33     archive-artifacts: ''
34
35 - project:
36     name: integration-netconf-pnp-simulator
37     project: integration
38     stream:
39       - 'master':
40           branch: 'master'
41     # Required by verifier
42     mvn-settings: 'integration-settings'
43     project-name: 'integration-netconf-pnp-simulator'
44     gerrit_trigger_file_paths:
45       - compare-type: ANT
46         pattern: 'test/mocks/netconf-pnp-simulator/engine/**'
47     docker-name: 'onap/integration/simulators/netconf-pnp-simulator'
48     docker-root: test/mocks/netconf-pnp-simulator/engine
49     container-tag-method: yaml-file
50     post_docker_build_script: |
51         #!/bin/bash
52         set -eux
53         cd "$DOCKER_ROOT"
54         # To simplify the references inside tox.ini and tests/settings.py
55         docker tag "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" netconf-pnp-simulator:latest
56         tox
57     build-node: centos7-docker-8c-8g
58     build-timeout: 20
59     jobs:
60       - gerrit-docker-verify
61       - gerrit-docker-merge