blob: 54bb6aa414c0bde2f4d3170477039c2c7b230ac3 [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"
You Wang8f12d7d2018-11-09 13:47:23 -080014 previous_version = "1.15"
You Wangf043d0a2019-04-22 16:30:40 -070015 before_previous_version = "2.1"
Devin Lim767c9832018-05-15 16:21:52 -070016
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"
You Wang8f12d7d2018-11-09 13:47:23 -080023 previous_version = "1.15"
You Wangf043d0a2019-04-22 16:30:40 -070024 before_previous_version = "2.1"
Devin Lim767c9832018-05-15 16:21:52 -070025 3) If you want certain branch to be run on different machine then change
You Wang96b98ad2018-05-25 12:14:45 -070026 a) line 155 - 157:
27 testcases[ "SR" ][ "nodeName" ][ <node you want> ] 0: Fabric2, 1: Fabric3, 2: Fabric4
Devin Lim767c9832018-05-15 16:21:52 -070028 b) Then, go to dependencies/JenkinsCommonFuncs.groovy
29 change def fabricOn( branch ) on line 86.
You Wangf043d0a2019-04-22 16:30:40 -070030 Currently, master, 2.1 and 1.15 run on Fabric4, 3 and 2 respectively.
You Wangdba6c9f2018-12-21 11:58:55 -080031 c) Make sure to change the URLs on Wiki as well. If 1.15 runs on Fabric2 instead of Fabric3, then you
Devin Lim767c9832018-05-15 16:21:52 -070032 have to update the URL from
You Wangdba6c9f2018-12-21 11:58:55 -080033 https://jenkins.onosproject.org/view/QA/job/postjob-Fabric3/lastSuccessfulBuild/artifact/SRBridging_onos-1.15_20-builds_graph.jpg
Devin Lim767c9832018-05-15 16:21:52 -070034 to
You Wangdba6c9f2018-12-21 11:58:55 -080035 https://jenkins.onosproject.org/view/QA/job/postjob-Fabric2/lastSuccessfulBuild/artifact/SRBridging_onos-1.15_20-builds_graph.jpg
Devin Lim767c9832018-05-15 16:21:52 -070036
37
383. If you want to upload additional logs for the Segment Routing tests:
39
40 1) go to dependencies/JenkinsCommonFuncs.groovy,
41 2) change def copyLogs( testName ) on line 174.
42 3) you may change/add/remove files from there.
43
44
454. If you want to add a new test. ( non-SCPF tests like FUNC,HA,USECASE, and SR ):
46
47 1) go to dependencies/JenkinsTestONTests.groovy.
48 2) Add the new test on the list.
49 3) Make sure to also create a new wiki page for wiki link before running the test.
50 Since publish to confluence does not make new page, it has to be there before gets published.
51 4) If your new test's category is not scheduled :
52 a) For non-Segment Routing test :
53 i) go to VM_BMJenkinsFileTrigger
54 ii) add your new category on any days you want it to be run after line 223.
55 b) For Segment Routing test:
56 i) go to FabricJenkinsfileTrigger
57 ii) add your new category after line 113.
58 5) add your new graph to the wiki page.
59
605. If you want to add a new test ( SCPF ):
61 1) Outside the Jenkins file requirement : need to add new table, function, view and its rule to the database first.
62 2) go to dependencies/JenkinsTestONTests.groovy and follow the 4 steps procedure for scheduling.
63 3) go to dependencies/PerformanceFuncs.groovy and add a new test in the dictionary.
64 4) It explains details about which to add in the file.
65 5) Make a Rscript for that test.
You Wang96b98ad2018-05-25 12:14:45 -070066 6) add your new graph to the wiki page.