blob: 566906faa9a188338fb483b05809538d0461065a [file] [log] [blame]
---
# ONOS System Test Pipeline jobs
# TODO: for some reason, lf-* types of macro cannot access to the variable. I think it is typical problem to pipeline job type.
- 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"
- test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate
name: test-pipe-job-boiler-plate
project-type: pipeline
sandbox: true
properties:
- build-discarder:
num-to-keep: 20
- test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate
name: test-pipe-init-procedure-plate
project: OnosSystemTest
stream: 'master'
jenkins-path: 'TestON/JenkinsFile'
- job-version-plate: &job-version-plate
name: job-version-plate
version:
- '1.11'
- '1.12'
- 'master'
- 'manually'
- job-type-plate: &job-type-plate
name: job-type-plate
type:
- 'FUNC'
- 'HA'
- 'SCPF'
- 'USECASE'
- job-template:
name: all-pipeline-trigger
<<: *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).
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.'
- text:
name: Tests
default: |
{FUNC}
{HA}
{SCPF}
{USECASE}
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: |
# 30 19 * * 1,2,3,4,5
# 30 11 * * 6,7
pipeline-scm:
script-path: '{jenkins-path}/JenkinsfileTrigger'
scm:
- git:
url: '$GIT_URL/$GERRIT_PROJECT'
credentials-id: '{jenkins-ssh-credential}'
branches:
- 'master'
- job-template:
name: '{type}-pipeline-{version}'
<<: *test-pipe-job-boiler-plate
parameters:
- string:
name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
description: |
<a href=https://onos-jenkins.onlab.us/job/ALL_Pipeline_Trigger/>ALL_Pipeline_Trigger</a> triggers this pipeline automatically.
- lf-infra-parameters:
project: 'OnosSystemTest'
branch: 'master'
stream: 'master'
lftools-version: '<1.0.0'
concurrent: false
pipeline-scm:
script-path: '{jenkins-path}/{type}JenkinsFile'
scm:
- git:
url: '$GIT_URL/$GERRIT_PROJECT'
credentials-id: '{jenkins-ssh-credential}'
branches:
- 'master'
- job-template:
name: 'manual-graph-generator-SCPF'
<<: *var-init-boiler-plate
<<: *test-pipe-job-boiler-plate
parameters:
- choice:
name: ONOSbranch
choices:
- 'master'
- 'onos-1.12'
- 'onos-1.11'
description: "Possible branches (may vary depending on test)"
- bool:
name: isOldFlows
default: false
description: 'Check if it is using the old flow rules'
- text:
name: Test
default: '{SCPF}'
description: 'List of the tests to generate.'
- lf-infra-parameters:
project: 'OnosSystemTest'
branch: 'master'
stream: 'master'
lftools-version: '<1.0.0'
pipeline-scm:
script-path: '{jenkins-path}/SCPF_Graph_Generator'
scm:
- git:
url: '$GIT_URL/$GERRIT_PROJECT'
credentials-id: '{jenkins-ssh-credential}'
branches:
- 'master'
- job-template:
name: 'manual-graph-generator-trend'
<<: *var-init-boiler-plate
<<: *test-pipe-job-boiler-plate
parameters:
- choice:
name: ONOSbranch
choices:
- 'master'
- 'onos-1.12'
- 'onos-1.11'
description: "Possible branches (may vary depending on test)"
- choice:
name: NodeCluster
choices:
- VM
- BM
description: |
Node cluster where the test graphs in the list are located.
List of the tests will be refreshed depends on the node cluster.
- text:
name: Test
default: |
VM:
{FUNC}
{HA}
BM:
{USECASE}
description: 'List of the tests to generate.'
- string:
name: Builds
deafult: '20'
description: 'Builds to show in the graph.'
- lf-infra-parameters:
project: 'OnosSystemTest'
branch: 'master'
stream: 'master'
lftools-version: '<1.0.0'
pipeline-scm:
script-path: '{jenkins-path}/Trend_Graph_Generator'
scm:
- git:
url: '$GIT_URL/$GERRIT_PROJECT'
credentials-id: '{jenkins-ssh-credential}'
branches:
- 'master'
- project:
name: all-pipeline-trigger
project-name: all-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'
- project:
name: build-pipeline
<<: *job-type-plate
project-name: '{type}-pipeline'
<<: *test-pipe-init-procedure-plate
<<: *job-version-plate
jobs:
- '{type}-pipeline-{version}'
- project:
name: graph-generator
project-name: 'graph-generator'
<<: *test-pipe-init-procedure-plate
jobs:
- 'manual-graph-generator-SCPF'
- 'manual-graph-generator-trend'