--- /dev/null
+#!/bin/bash
+
+# Copyright 2020 Samsung Electronics Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+echo "---> emssimulator-swm-netconf_post.sh"
+
+set -e # Exit with zero only if all commands succeed
+
+SERVICE_NAME="ems-netconf-swm"
+DOCKER_COMPOSE_LOG="/tmp/docker-compose.log"
+DOCKER_COMPOSE_LOG_MSG=( "INFO success:" "entered RUNNING state" )
+DOCKER_COMPOSE_SLEEP_INTERVAL=4
+
+pushd $DOCKER_ROOT
+
+# Dump container logs
+sleep ${DOCKER_COMPOSE_SLEEP_INTERVAL} # Hang for a while so the services settle
+docker-compose logs --no-color > ${DOCKER_COMPOSE_LOG}
+
+# Get the supervisord services running within container
+supervisord_services=($(docker-compose exec -T ${SERVICE_NAME} /bin/sh -c \
+ 'cat /etc/supervisord.conf /etc/supervisord.d/*' | grep -ho "program:[-a-zA-Z0-9]*" | cut -d: -f 2))
+
+# Check all services are running and fail if not
+for service in ${supervisord_services[@]};
+do
+ if ! grep -q "${DOCKER_COMPOSE_LOG_MSG[0]} $service ${DOCKER_COMPOSE_LOG_MSG[1]}" ${DOCKER_COMPOSE_LOG};
+ then
+ echo "ERROR: Service $service is not running, failing the build."
+ exit 1
+ fi
+done
- 'netconf-pnp-simulator':
pattern: 'test/mocks/netconf-pnp-simulator/modules/**'
docker_root: 'test/mocks/netconf-pnp-simulator/modules'
+ - 'emssimulator-swm-netconf':
+ pattern: 'test/mocks/emssimulator/swm-netconf/**'
+ docker_root: 'test/mocks/emssimulator/swm-netconf'
+ post_script: !include-raw-escape: emssimulator-swm-netconf_post.sh
description: 'This job validates Docker Compose based projects'
node: 'ubuntu1804-docker-8c-8g'
docker_root: '$WORKSPACE'
+ post_script: ''
parameters:
- lf-infra-parameters:
properties-content: |
DOCKER_ROOT={docker_root}
- shell: '{script}'
+ - shell: '{post_script}'
publishers:
- integration-docker-compose-logs
--- /dev/null
+---
+- project:
+ name: integration-simulators-dc-simulator-info
+ project-name: integration-simulators-dc-simulator
+ jobs:
+ - gerrit-info-yaml-verify
+ build-node: centos7-builder-2c-1g
+ project: integration/simulators/dc-simulator
+ branch: master
+
+- project:
+ name: integration-simulators-dc-simulator-linters
+ project: integration/simulators/dc-simulator
+ project-name: integration-simulators-dc-simulator
+ python-version: python3
+ jobs:
+ - '{project-name}-{stream}-{subproject}-lint'
+ subproject:
+ - 'yaml':
+ tox-dir: '.'
+ tox-envs: 'yaml'
+ pattern: '**/*.yaml'
+ - 'yml':
+ tox-dir: '.'
+ tox-envs: 'yaml'
+ pattern: '**/*.yml'
+ - 'json':
+ tox-dir: '.'
+ tox-envs: 'json'
+ pattern: '**/*.json'
+ stream:
+ - 'master':
+ branch: 'master'
--- /dev/null
+---
+- project:
+ name: integration-simulators-pnf-simulator-info
+ project-name: integration-simulators-pnf-simulator
+ jobs:
+ - gerrit-info-yaml-verify
+ build-node: centos7-builder-2c-1g
+ project: integration/simulators/pnf-simulator
+ branch: master
+
+- project:
+ name: integration-simulators-pnf-simulator-linters
+ project: integration/simulators/pnf-simulator
+ project-name: integration-simulators-pnf-simulator
+ python-version: python3
+ jobs:
+ - '{project-name}-{stream}-{subproject}-lint'
+ subproject:
+ - 'yaml':
+ tox-dir: '.'
+ tox-envs: 'yaml'
+ pattern: '**/*.yaml'
+ - 'yml':
+ tox-dir: '.'
+ tox-envs: 'yaml'
+ pattern: '**/*.yml'
+ - 'json':
+ tox-dir: '.'
+ tox-envs: 'json'
+ pattern: '**/*.json'
+ stream:
+ - 'master':
+ branch: 'master'
+
stream:
- 'master':
branch: 'master'
- - 'release-2.6.0':
- branch: 'release-2.6.0'
+ - 'release-3.2.0':
+ branch: 'release-3.2.0'
mvn-settings: 'portal-sdk-settings'
files: '**'
archive-artifacts: ''
stream:
- 'master':
branch: 'master'
+ - 'release-3.2.0':
+ branch: 'release-3.2.0'
mvn-settings: 'portal-settings'
files: '**'
archive-artifacts: ''
stream:
- 'master':
branch: 'master'
+ - 'release-3.2.0':
+ branch: 'release-3.2.0'
mvn-settings: 'portal-settings'
files: '**'
archive-artifacts: ''
sign-artifacts: true
build-node: centos7-docker-8c-8g
maven-versions-plugin: true
- mvn-params: '-Dskip.docker.build=false -Dskip.docker.push=false -Dskip.docker.tag=false -Ddocker.push.registry=nexus3.onap.org:10003'
+ mvn-goals: 'clean package -Pdocker -DpushImageTag'
container-public-registry: 'nexus3.onap.org:10001'
container-staging-registry: 'nexus3.onap.org:10003'
- '{project-name}-gerrit-release-jobs':
#!/bin/bash
-virtualenv -p python3.6 $WORKSPACE/venv-tox
+python3 -m venv $WORKSPACE/venv-tox
source $WORKSPACE/venv-tox/bin/activate
pip3 install --upgrade pip
pip3 install --no-use-pep517 -r requirements.txt