netconf-pnp-simulator: fix tox execution working dir 00/105900/2
authorebo <eliezio.oliveira@est.tech>
Fri, 10 Apr 2020 15:03:52 +0000 (16:03 +0100)
committerebo <eliezio.oliveira@est.tech>
Tue, 14 Apr 2020 10:36:20 +0000 (11:36 +0100)
Using inline script since it's not possible to configure the
working dir where tox-build.sh runs.

Issue-ID: INT-1124
Change-Id: Ia8fee5bc6dbbee7f3e416fc4f5fe9480dd47071b
Signed-off-by: ebo <eliezio.oliveira@est.tech>
jjb/integration/integration-docker.yaml

index cf6c430..3920653 100644 (file)
     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
+    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: centos7-docker-8c-8g
     build-timeout: 20
     jobs: