--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+- project:
+ name: 'nsm-meridio-periodic'
+
+ project: 'nsm-meridio-periodic'
+
+ stream:
+ - 'master':
+ branch: 'master'
+
+ image-name:
+ - ctraffic
+ - ipam
+ - load-balancer
+ - nsp
+ - proxy
+ - target
+
+ jobs:
+ - 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
+
+- job-template:
+ name: 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ concurrent: true
+
+ node: nordix-nsm-build-ubuntu1804
+
+ properties:
+ - github:
+ url: https://github.com/nordix/meridio.git
+
+ parameters:
+ - string:
+ name: GITHUB_ORGANIZATION
+ default: 'Nordix'
+ description: JJB configured parameter to identify GitHub Organization
+ - string:
+ name: PROJECT
+ default: 'meridio'
+ description: JJB configured PROJECT parameter to identify a Nordix GitHub project
+ - string:
+ name: IMAGE_NAME
+ default: '{image-name}'
+ description: Meridio image to verify build
+ - string:
+ name: IMAGE_VERSION
+ default: 'latest'
+ description: Meridio image version to build with
+ - string:
+ name: IMAGE_REGISTRY
+ default: 'registry.nordix.org/cloud-native/$PROJECT'
+ description: Meridio image version to build with
+ - string:
+ name: BUILD_STEPS
+ default: 'build tag push'
+ description: Steps to run during build
+
+ scm:
+ - git:
+ url: 'https://github.com/$PROJECT.git'
+ branches:
+ - master
+ timeout: 15
+ wipe-workspace: true
+
+ triggers:
+ - timed: '@midnight'
+
+ wrappers:
+ - build-timeout:
+ timeout: 10
+ - nordixinfra-harbor-creds-wrapper
+ - mask-passwords
+
+ builders:
+ - shell:
+ !include-raw: ./scripts/build.sh
+
+# vim: set ts=2 sw=2 expandtab:
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+- project:
+ name: 'nsm-meridio-verify'
+
+ project: 'nsm-meridio-verify'
+
+ stream:
+ - 'master':
+ branch: '${{ghprbActualCommit}}'
+
+ image-name:
+ - ctraffic
+ - ipam
+ - load-balancer
+ - nsp
+ - proxy
+ - target
+
+ jobs:
+ - 'nordix-nsm-meridio-verify-static-analysis-{stream}'
+ - 'nordix-nsm-meridio-{image-name}-verify-build-{stream}'
+
+- job-template:
+ name: 'nordix-nsm-meridio-verify-static-analysis-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ concurrent: true
+
+ node: nordix-nsm-build-ubuntu1804
+
+ properties:
+ - github:
+ url: https://github.com/Nordix/Meridio.git
+
+ parameters:
+ - string:
+ name: GITHUB_ORGANIZATION
+ default: 'Nordix'
+ description: JJB configured parameter to identify GitHub Organization
+ - string:
+ name: PROJECT
+ default: 'meridio'
+ description: JJB configured PROJECT parameter to identify a Nordix GitHub project
+
+ scm:
+ - git:
+ url: 'https://github.com/$GITHUB_ORGANIZATION/$PROJECT.git'
+ branches:
+ - '{branch}'
+ refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
+ timeout: 15
+ wipe-workspace: true
+ choosing-strategy: 'default'
+ clean_before: false
+
+ triggers:
+ - github-pull-request:
+ admin-list:
+ - nordixinfra
+ - uablrek
+ - LionelJouin
+ - fdegir
+ auth-id: 'nordix-nsm-github-token'
+ github-hooks: true
+ permit-all: true
+ trigger-phrase: '/reverify'
+ only-trigger-phrase: false
+ cron: 'H/5 * * * *'
+ status-context: 'Nordix Jenkins'
+
+ builders:
+ - shell:
+ !include-raw: ./scripts/static-analysis.sh
+
+- job-template:
+ name: 'nordix-nsm-meridio-{image-name}-verify-build-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ concurrent: true
+
+ node: nordix-nsm-build-ubuntu1804
+
+ properties:
+ - github:
+ url: https://github.com/Nordix/Meridio.git
+
+ parameters:
+ - string:
+ name: GITHUB_ORGANIZATION
+ default: 'Nordix'
+ description: JJB configured parameter to identify GitHub Organization
+ - string:
+ name: PROJECT
+ default: 'meridio'
+ description: JJB configured PROJECT parameter to identify a Nordix GitHub project
+ - string:
+ name: IMAGE_NAME
+ default: '{image-name}'
+ description: Meridio image to verify build
+ - string:
+ name: IMAGE_VERSION
+ default: 'dev'
+ description: Meridio image version to build with
+ - string:
+ name: IMAGE_REGISTRY
+ default: 'registry.nordix.org/cloud-native/$PROJECT'
+ description: Meridio image version to build with
+ - string:
+ name: BUILD_STEPS
+ default: 'build tag'
+ description: Steps to run during build
+
+ scm:
+ - git:
+ url: 'https://github.com/$GITHUB_ORGANIZATION/$PROJECT.git'
+ branches:
+ - '{branch}'
+ refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
+ timeout: 15
+ wipe-workspace: true
+ choosing-strategy: 'default'
+ clean_before: false
+
+ triggers:
+ - github-pull-request:
+ admin-list:
+ - nordixinfra
+ - uablrek
+ - LionelJouin
+ - fdegir
+ auth-id: 'nordix-nsm-github-token'
+ github-hooks: true
+ permit-all: true
+ trigger-phrase: '/reverify'
+ only-trigger-phrase: false
+ cron: 'H/5 * * * *'
+ status-context: 'Nordix Jenkins'
+
+ wrappers:
+ - build-timeout:
+ timeout: 10
+ - nordixinfra-harbor-creds-wrapper
+ - mask-passwords
+
+ builders:
+ - shell:
+ !include-raw: ./scripts/build.sh
+
+# vim: set ts=2 sw=2 expandtab:
--- /dev/null
+#!/bin/bash
+
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+set -o errexit
+set -o pipefail
+set -o nounset
+
+# navigate to WORKSPACE which is the root of the Git clone
+cd $WORKSPACE
+
+# git show for information purposes
+echo "--------------------------------------------"
+git show
+echo "--------------------------------------------"
+
+# login to image registry
+echo "Info : Logging in to $IMAGE_REGISTRY"
+echo "--------------------------------------------"
+echo $HARBOR_PASSWORD | docker login --username $HARBOR_USERNAME --password-stdin $IMAGE_REGISTRY
+echo "--------------------------------------------"
+
+# build the image
+# the env vars are set by the job using parameters so update them instead
+echo "Info : Starting the build using make $BUILD_STEPS"
+echo "--------------------------------------------"
+IMAGE=$IMAGE_NAME VERSION=$IMAGE_VERSION REGISTRY=$IMAGE_REGISTRY make $BUILD_STEPS
+echo "--------------------------------------------"
+echo "Info : Done!"
+
+# vim: set ts=2 sw=2 expandtab:
--- /dev/null
+#!/bin/bash
+
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+set -o errexit
+set -o pipefail
+set -o nounset
+
+# navigate to WORKSPACE which is the root of the Git clone
+cd $WORKSPACE
+
+# git show for information purposes
+echo "--------------------------------------------"
+git show
+echo "--------------------------------------------"
+
+# command to run static analysis TBD
+echo "Hello, World!"
+
+# vim: set ts=2 sw=2 expandtab: