blob: 18307e2752b3d26e9f63131d06179fbab36ff067 [file] [log] [blame]
Devin Lim767c9832018-05-15 16:21:52 -07001Jenkins script for Jenkins Pipeline jobs **
2*******************************************
3
4All the Jenkins files are under the dependencies folders are the dependencies of the Jenkins file.
5
6Some tips for the Jenkins File:
7
8
91. If you want to change the branch to be run on weekdays and weekends (VM, BM) :
10
11 1) go to VM_BMJenkinsfileTrigger
12 2) change the portion on line 31 :
13 current_version = "master"
14 previous_version = "1.13"
15 before_previous_version = "1.12"
16
17
182. If you want to change the branch to be run for the Segment Routing tests :
19
20 1) go to the FabricJenkinsfileTrigger
21 2) change the variable values on line 32:
22 current_version = "master"
23 previous_version = "1.13"
24 before_previous_version = "1.12"
25 3) If you want certain branch to be run on different machine then change
26 a) line 157 - 159:
27 testcases[ "SR1" ][ "nodeName" ][ <node you want> ] 0 : Fabric2, 1: Fabric3
28 b) Then, go to dependencies/JenkinsCommonFuncs.groovy
29 change def fabricOn( branch ) on line 86.
30 Currently, only 1.12 runs on Fabric3 and rest are running Fabric2.
31 c) Make sure to change the URLs on Wiki as well. If 1.12 runs on Fabric2 instead of Fabric3, then you
32 have to update the URL from
33 https://jenkins.onosproject.org/view/QA/job/postjob-Fabric3/lastSuccessfulBuild/artifact/SRBridging_onos-1.12_20-builds_graph.jpg
34
35 to
36
37 https://jenkins.onosproject.org/view/QA/job/postjob-Fabric2/lastSuccessfulBuild/artifact/SRBridging_onos-1.12_20-builds_graph.jpg
38
39
403. If you want to upload additional logs for the Segment Routing tests:
41
42 1) go to dependencies/JenkinsCommonFuncs.groovy,
43 2) change def copyLogs( testName ) on line 174.
44 3) you may change/add/remove files from there.
45
46
474. If you want to add a new test. ( non-SCPF tests like FUNC,HA,USECASE, and SR ):
48
49 1) go to dependencies/JenkinsTestONTests.groovy.
50 2) Add the new test on the list.
51 3) Make sure to also create a new wiki page for wiki link before running the test.
52 Since publish to confluence does not make new page, it has to be there before gets published.
53 4) If your new test's category is not scheduled :
54 a) For non-Segment Routing test :
55 i) go to VM_BMJenkinsFileTrigger
56 ii) add your new category on any days you want it to be run after line 223.
57 b) For Segment Routing test:
58 i) go to FabricJenkinsfileTrigger
59 ii) add your new category after line 113.
60 5) add your new graph to the wiki page.
61
625. If you want to add a new test ( SCPF ):
63 1) Outside the Jenkins file requirement : need to add new table, function, view and its rule to the database first.
64 2) go to dependencies/JenkinsTestONTests.groovy and follow the 4 steps procedure for scheduling.
65 3) go to dependencies/PerformanceFuncs.groovy and add a new test in the dictionary.
66 4) It explains details about which to add in the file.
67 5) Make a Rscript for that test.
68 6) add your new graph to the wiki page.