blob: 2c24fd67aa2b77320848eaac23e9344b2d4b6770 [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
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 Wang96b98ad2018-05-25 12:14:45 -070030 Currently, master, 1.13 and 1.12 run on Fabric4, 2 and 3 respectively.
Devin Lim767c9832018-05-15 16:21:52 -070031 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
Devin Lim767c9832018-05-15 16:21:52 -070034 to
Devin Lim767c9832018-05-15 16:21:52 -070035 https://jenkins.onosproject.org/view/QA/job/postjob-Fabric2/lastSuccessfulBuild/artifact/SRBridging_onos-1.12_20-builds_graph.jpg
36
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.