[ONOS-7346] Migrating Jenkins job on QA Jenkins to onos Jenkins
Change-Id: Id43b99295fa760384387171ae8c835b989972888
diff --git a/jjb/OnosSystemTest/onos-test-pipeline.yaml b/jjb/OnosSystemTest/onos-test-pipeline.yaml
new file mode 100644
index 0000000..06a3426
--- /dev/null
+++ b/jjb/OnosSystemTest/onos-test-pipeline.yaml
@@ -0,0 +1,102 @@
+---
+# ONOS System Test Pipeline jobs
+
+- var-init-boiler-plate: &var-init-boiler-plate
+ name: var-init-boiler-plate
+ FUNC: "FUNCgroup\nFUNCflow\nFUNCintent\nFUNCintentRest\nFUNCipv6Intent\nFUNCnetCfg\nFUNCnetconf\nFUNCoptical\nFUNCovsdbtest\nFUNCformCluster"
+ HA: "HAclusterRestart\nHAfullNetPartition\nHAkillNodes\nHAsanity\nHAscaling\nHAsingleInstanceRestart\nHAstopNodes\nHAswapNodes\nHAupgrade\nHAupgradeRollback"
+ SCPF: "SCPFcbench\nSCPFflowTp1g\nSCPFhostLat\nSCPFintentEventTp\nSCPFintentInstallWithdrawLat\nSCPFintentRerouteLat\nSCPFmastershipFailoverLat\nSCPFbatchFlowResp\nSCPFportLat\nSCPFscaleTopo\nSCPFscalingMaxIntents\nSCPFswitchLat\nSCPFflowTp1gWithFlowObj\nSCPFintentEventTpWithFlowObj\nSCPFintentRerouteLatWithFlowObj\nSCPFscalingMaxIntentsWithFlowObj\nSCPFintentInstallWithdrawLatWithFlowObj"
+ USECASE: "FUNCbgpls\nFUNCvirNetNB\nPLATdockertest\nVPLSBasic\nVPLSfailsafe\nUSECASE_SdnipFunction\nUSECASE_SdnipFunctionCluster\nSRClusterRestart\nSRDynamic\nSRHighAvailability\nSRLinkFailure\nSROnosFailure\nSRSanity\nSRSwitchFailure"
+
+- job-boiler-plate: &job-boiler-plate
+ name: job-boiler-plate
+
+ project-type: pipeline
+
+ sandbox: true
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ branch: '{stream}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+
+ properties:
+
+ - build-discarder:
+ num-to-keep: 20
+
+- job:
+ name: all-pipeline-trigger
+
+ <<: *var-init-boiler-plate
+ <<: *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).
+ 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.
+ When manually run, this will update the wiki pages corresponding to the tests that were run.
+ This option will always be selected during nightly builds.
+
+ - bool:
+ name: isOldFlow
+ default: false
+ description: |
+ Check this option if you prefer to run the old flow rule over the new one.
+ * 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: Tests
+ default: '{FUNC}\n{HA}\n{SCPF}\n{USECASE}'
+ description: 'Specify the tests you want to run, if manual_run is selected.'
+
+ concurrent: false
+
+ triggers:
+ - timed: |
+ 30 19 * * 1,2,3,4,5
+ 30 11 * * 6,7
+
+ pipeline-scm:
+ script-path: TestON/JenkinsFile/JenkinsfileTrigger
+ scm:
+ - git:
+ url: '$GIT_URL/$GERRIT_PROJECT'
+ credentials-id: '{jenkins-ssh-credential}'
+ branches:
+ - '{stream}'
+
+- project:
+ name: all-pipeline-trigger
+ project-name: all-pipeline-trigger
+ project: OnosSystemTest
+ stream: 'master'
+ # can we use this node or master ?
+ build-node: 'ubuntu16.04-basebuild-8c-15g'
+ jobs:
+ - 'all-pipeline-trigger'