Merge "Add post job build script for mass PNF simulator"
diff --git a/jjb/integration/integration-docker.yaml b/jjb/integration/integration-docker.yaml
index 503b52c..c39ca2a 100644
--- a/jjb/integration/integration-docker.yaml
+++ b/jjb/integration/integration-docker.yaml
@@ -17,6 +17,16 @@
pom: 'test/mocks/mass-pnf-sim/pnf-sim-lightweight/pom.xml'
pattern: 'test/mocks/mass-pnf-sim/**'
mvn-goals: 'clean package docker:build -Dcheckstyle.skip'
+ PNF_INSTANCES: 1
+ post-docker-verify-script: |
+ #!/bin/bash
+ set -ex # Fail build if any setup step fails
+ cd $WORKSPACE/test/mocks/mass-pnf-sim
+ ./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
+ ./mass-pnf-sim.py --start {PNF_INSTANCES}
+ ./mass-pnf-sim.py --trigger {PNF_INSTANCES}
+ ./mass-pnf-sim.py --stop {PNF_INSTANCES}
+ ./mass-pnf-sim.py --clean
mvn-settings: 'integration-settings'
files: '**'
archive-artifacts: ''