Merge "Enable jjb-verify check of build node labels"
[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 {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 {PNF_INSTANCES}
27               ./mass-pnf-sim.py --trigger {PNF_INSTANCES}
28               ./mass-pnf-sim.py --stop {PNF_INSTANCES}
29               ./mass-pnf-sim.py --clean
30     mvn-settings: 'integration-settings'
31     files: '**'
32     archive-artifacts: ''
33
34 - project:
35     name: integration-netconf-pnp-simulator
36     project: integration
37     stream:
38       - 'master':
39           branch: 'master'
40     # Required by verifier
41     mvn-settings: 'integration-settings'
42     project-name: 'integration-netconf-pnp-simulator'
43     gerrit_trigger_file_paths:
44       - compare-type: ANT
45         pattern: 'test/mocks/netconf-pnp-simulator/engine/**'
46     docker-name: 'onap/integration/simulators/netconf-pnp-simulator'
47     docker-root: test/mocks/netconf-pnp-simulator/engine
48     container-tag-method: yaml-file
49     post_docker_build_script: |
50         #!/bin/bash
51         set -eux
52         cd "$DOCKER_ROOT"
53         # To simplify the references inside tox.ini and tests/settings.py
54         docker tag "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" netconf-pnp-simulator:latest
55         tox
56     build-node: centos7-docker-8c-8g
57     build-timeout: 20
58     jobs:
59       - gerrit-docker-verify
60       - gerrit-docker-merge