summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2021-02-10 13:55:49 -0800
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2021-02-10 13:57:19 -0800
commite8aac8f2dc3933b1675072376d6f7cf7e0a13d2b (patch)
tree2263a3101722569bdb3c9f57da18d977eab2cb5a
parent0ca2124cb7da285607f58e2926923d27c82491e5 (diff)
Revert "Remove obsolete ovn4nfv jjbs"
This reverts commit 6938d76e3081a059ddb342d3a4c186d404d0446b. Change-Id: I633f22157e054aa5fb147eb70da25f5f1f363700 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
-rw-r--r--jjb/ovn4nfv/golang-make-test.sh25
-rw-r--r--jjb/ovn4nfv/ovn4nfv-k8s-plugins-project-jobs.yaml109
2 files changed, 134 insertions, 0 deletions
diff --git a/jjb/ovn4nfv/golang-make-test.sh b/jjb/ovn4nfv/golang-make-test.sh
new file mode 100644
index 000000000..7ed463277
--- /dev/null
+++ b/jjb/ovn4nfv/golang-make-test.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018 Intel Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+set -o errexit
+set -o pipefail
+
+source /etc/os-release || source /usr/lib/os-release
+case ${ID,,} in
+ ubuntu|debian)
+ sudo add-apt-repository -y ppa:longsleep/golang-backports
+ sudo apt-get update
+ sudo apt-get install -y build-essential golang-go
+ sudo apt-get -y clean && sudo apt-get -y autoremove
+ ;;
+esac
+
+echo "Running unit tests in Go ${golang_version} ..."
+cd $WORKSPACE
+make test
diff --git a/jjb/ovn4nfv/ovn4nfv-k8s-plugins-project-jobs.yaml b/jjb/ovn4nfv/ovn4nfv-k8s-plugins-project-jobs.yaml
new file mode 100644
index 000000000..849be93c1
--- /dev/null
+++ b/jjb/ovn4nfv/ovn4nfv-k8s-plugins-project-jobs.yaml
@@ -0,0 +1,109 @@
+---
+- project:
+ name: ovn4nfv-k8s-plugin-project-jobs
+
+ project: 'ovn4nfv-k8s-plugin'
+
+ jobs:
+ - 'ovn4nfv-k8s-plugin-verify-{stream}'
+ - 'ovn4nfv-k8s-plugin-merge-{stream}'
+
+ stream:
+ - master:
+ branch: '{stream}'
+ gs-pathname: ''
+ disabled: false
+
+################################
+# job templates
+################################
+
+- job-template:
+ name: 'ovn4nfv-k8s-plugin-verify-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ branch: '{branch}'
+ - opnfv-build-defaults
+
+ scm:
+ - git-scm-gerrit
+
+ triggers:
+ - gerrit:
+ server-name: 'gerrit.opnfv.org'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'false'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck'
+ - comment-added-contains-event:
+ comment-contains-value: 'reverify'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+
+ wrappers:
+ - ssh-agent-wrapper
+ - timeout:
+ timeout: 30
+ fail: true
+
+ builders:
+ - ovn4nfv-k8s-plugin-unit-tests-golang
+
+- job-template:
+ name: 'ovn4nfv-k8s-plugin-merge-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ branch: '{branch}'
+ - opnfv-build-defaults
+
+ scm:
+ - git-scm
+
+ triggers:
+ - gerrit:
+ server-name: 'gerrit.opnfv.org'
+ trigger-on:
+ - change-merged-event
+ - comment-added-contains-event:
+ comment-contains-value: 'remerge'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+
+ wrappers:
+ - ssh-agent-wrapper
+ - timeout:
+ timeout: 30
+ fail: true
+
+ builders:
+ - ovn4nfv-k8s-plugin-unit-tests-golang
+
+################################
+# job builders
+################################
+
+- builder:
+ name: ovn4nfv-k8s-plugin-unit-tests-golang
+ builders:
+ - shell:
+ !include-raw: ./golang-make-test.sh