summaryrefslogtreecommitdiffstats
path: root/jjb/nsh_sfc
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/nsh_sfc')
-rw-r--r--jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh12
-rw-r--r--jjb/nsh_sfc/nsh_sfc.yaml62
2 files changed, 74 insertions, 0 deletions
diff --git a/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh b/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh
new file mode 100644
index 000000000..0f30ff4c9
--- /dev/null
+++ b/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# basic build script example
+set -e -o pipefail
+if [ "${OS}" == "ubuntu1404" ]; then
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
+ export JAVAC=${JAVA_HOME}/bin/javac
+ export PATH=${JAVA_HOME}/bin/:${PATH}
+ cd nsh-plugin/build/java/jvpp
+ $MVN deploy \
+ -gs "$GLOBAL_SETTINGS_FILE" -s "$SETTINGS_FILE"
+ cd -
+fi \ No newline at end of file
diff --git a/jjb/nsh_sfc/nsh_sfc.yaml b/jjb/nsh_sfc/nsh_sfc.yaml
index 8b304976a..5fad549be 100644
--- a/jjb/nsh_sfc/nsh_sfc.yaml
+++ b/jjb/nsh_sfc/nsh_sfc.yaml
@@ -3,6 +3,7 @@
jobs:
- 'nsh_sfc-verify-{stream}-{os}'
- 'nsh_sfc-merge-{stream}-{os}'
+ - 'nsh_sfc-integration-{stream}-{os}'
- 'nsh_sfc-verify-image-{stream}-{os}'
project: 'nsh_sfc'
@@ -17,6 +18,9 @@
- master:
branch: 'master'
repo-stream-part: 'master'
+ - '1609':
+ branch: 'stable/1609'
+ repo-stream-part: 'stable.1609'
- job-template:
name: 'nsh_sfc-verify-{stream}-{os}'
@@ -220,3 +224,61 @@
- ../scripts/setup_vpp_plugin_dev_env.sh
- include-raw-nsh_sfc-build.sh
- ../scripts/cleanup_vpp_plugin_dev_env.sh
+
+- job-template:
+ name: 'nsh_sfc-integration-{stream}-{os}'
+
+ project-type: freestyle
+ node: 'merge-{os}'
+
+ logrotate:
+ daysToKeep: '{build-days-to-keep}'
+ numToKeep: '{build-num-to-keep}'
+ artifactDaysToKeep: '{build-artifact-days-to-keep}'
+ artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - os-parameter:
+ os: '{os}'
+ - repo-name-parameter:
+ repo-name: '{repo-stream-part}.{repo-os-part}'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ choosing-strategy: 'default'
+
+ wrappers:
+ - ssh-agent-credentials:
+ users:
+ - '{ssh-credentials}'
+
+ triggers:
+ - reverse:
+ jobs: 'vpp-merge-{stream}-{os},nsh_sfc-merge-{stream}-{os}'
+ result: 'success'
+
+ builders:
+ - config-file-provider:
+ files:
+ - file-id: 'nsh_sfc-settings'
+ variable: 'SETTINGS_FILE'
+ - file-id: 'global-settings'
+ variable: 'GLOBAL_SETTINGS_FILE'
+ - shell:
+ !include-raw-escape: ../scripts/create_maven_env.sh
+ - inject:
+ properties-file: maven_env.txt
+ - shell:
+ !include-raw-escape:
+ - ../scripts/cleanup_vpp_plugin_dev_env.sh
+ - ../scripts/setup_vpp_plugin_dev_env.sh
+ - include-raw-nsh_sfc-build.sh
+ - ../scripts/cleanup_vpp_plugin_dev_env.sh
+ - ../scripts/maven_push_functions.sh
+ - include-raw-nsh_sfc-pkg-push.sh