[ONOS-7557] Add new Fabrics TestMachine to Jenkins and Schedule tests
Change-Id: Idea1de8490d24e4da8028bd33c95f6954d95ecd5
diff --git a/jjb/OnosSystemTest/onos-test-freestyle.yaml b/jjb/OnosSystemTest/onos-test-freestyle.yaml
index 26391aa..7981709 100644
--- a/jjb/OnosSystemTest/onos-test-freestyle.yaml
+++ b/jjb/OnosSystemTest/onos-test-freestyle.yaml
@@ -12,6 +12,7 @@
station-type:
- 'VM'
- 'BM'
+ - 'Fabric'
- job-free-version-plate: &job-free-version-plate
name: job-free-version-plate
@@ -495,7 +496,7 @@
properties:
- build-discarder:
- num-to-keep: 30
+ num-to-keep: 50
parameters:
diff --git a/jjb/OnosSystemTest/onos-test-pipeline.yaml b/jjb/OnosSystemTest/onos-test-pipeline.yaml
index 0c8fda3..d6133dd 100644
--- a/jjb/OnosSystemTest/onos-test-pipeline.yaml
+++ b/jjb/OnosSystemTest/onos-test-pipeline.yaml
@@ -50,7 +50,7 @@
name: all-pipeline-trigger
description: |
<!-- Managed by Jenkins Job Builder -->
- All_Pipeline_Trigger can trigger any TestON test on any branch of ONOS and TestON, by running the test category pipeline that contains the test. <br />
+ all-pipeline-trigger can trigger any TestON test on any branch of ONOS and TestON, by running the test category pipeline that contains the test. <br />
This pipeline is triggered by timer for the nightly builds. <br />
You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br />
Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br />
@@ -134,6 +134,89 @@
- 'master'
- job-template:
+ name: SR-pipeline-trigger
+ description: |
+ <!-- Managed by Jenkins Job Builder -->
+ SR-pipeline-trigger can trigger Segment Routing TestON test on any branch of ONOS and TestON, by running the test category pipeline that contains the test. <br />
+ This pipeline is triggered by timer for the nightly builds. <br />
+ You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br />
+ Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br />
+ Visit the test category pipelines (such as <a href="https://jenkins.onosproject.org/view/QA/job/FUNC-pipeline-master/">SR-pipeline-master</a>) to view the test logs. <br /> <br />
+ Created by Devin Lim - devin@opennetworking.org<br />
+ Copyright (c) 2017 Open Networking Foundation (ONF)
+
+ <<: *var-init-boiler-plate
+ <<: *test-pipe-job-boiler-plate
+
+ parameters:
+
+ - bool:
+ name: manual_run
+ default: false
+ description: |
+ Check this option if you are manually running this job (you most likely are). <br />
+ You must specify which tests to run in the text field below.
+
+ - bool:
+ name: PostResult
+ default: false
+ description: |
+ Check this option if you want to update the results on the wiki. <br />
+ When manually run, this will update the wiki pages corresponding to the tests that were run. <br />
+ This option will always be selected during nightly builds.
+
+ - bool:
+ name: isOldFlow
+ default: true
+ description: |
+ Check this option if you prefer to run the old flow rule over the new one. <br />
+ * This only applies to SCPF tests.
+
+ - choice:
+ name: ONOSVersion
+ choices:
+ - 'master'
+ - '1.12'
+ - '1.11'
+ description: "ONOS and TestON versions to run on."
+
+ - string:
+ name: ONOSJVMHeap
+ default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
+ description: 'ONOS cell JVM heap size setting.'
+
+ - string:
+ name: ONOSTag
+ default: ''
+ desciption: 'specific branch trying to checkout'
+
+ - text:
+ name: Tests
+ default: |
+
+ description: 'Specify the tests you want to run, if manual_run is selected.'
+
+ - lf-infra-parameters:
+ project: 'OnosSystemTest'
+ branch: 'master'
+ stream: 'master'
+ lftools-version: '<1.0.0'
+
+ concurrent: false
+
+ triggers:
+ - timed: |
+ 00 08 * * 1,2,3,4,5,6,7
+
+ pipeline-scm:
+ script-path: '{jenkins-path}/SRJenkinsfileTrigger'
+ scm:
+ - git:
+ url: '{gitURL}'
+ branches:
+ - 'master'
+
+- job-template:
name: '{type}-pipeline-{version}'
description: '<!-- Managed by Jenkins Job Builder -->
This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br />
@@ -308,15 +391,15 @@
- 'master'
- project:
- name: all-pipeline-trigger
- project-name: all-pipeline-trigger
+ name: pipeline-trigger
+ project-name: pipeline-trigger
<<: *test-pipe-init-procedure-plate
- # can we use this node or master ?
build-node: 'ubuntu16.04-basebuild-8c-15g'
jobs:
- 'all-pipeline-trigger'
+ - 'SR-pipeline-trigger'
- project:
name: build-pipeline