[ONOS-7984]: (CI) Automating System Test page creation for ONOS releases
Change-Id: I5a96e4d9eb208a571d83af66d6a0f355d45ada48
diff --git a/jjb/OnosSystemTest/onos-test-pipeline.yaml b/jjb/OnosSystemTest/onos-test-pipeline.yaml
index e5e32de..8410f1d 100644
--- a/jjb/OnosSystemTest/onos-test-pipeline.yaml
+++ b/jjb/OnosSystemTest/onos-test-pipeline.yaml
@@ -415,6 +415,105 @@
branches:
- 'master'
+- job-template:
+ name: 'generate_wiki_pages'
+ description: |
+ <!-- Managed by Jenkins Job Builder -->
+ <p>When there is a new version of ONOS about to release, run this job multiple times in the
+ following order to create all necessary test result wiki pages.</p>
+ <p>How to run this job:</p><ol>
+ <li>First, run the job with the following parameters to generate only the <b>top-level
+ result page</b> for that version:<ul>
+ <li>top_level_page_id: -1</li>
+ <li>SCPF_page_id: -1</li>
+ <li>USECASE_page_id: -1</li>
+ </ul>
+ <li>Second, get the pageID of the top-level result page just generated, and run
+ this job again with "top_level_page_id" as the known pageID to generate the <b>test
+ category front pages</b>.<ul>
+ <li>top_level_page_id: <i>page ID of top-level result page</i> </li>
+ <li>SCPF_page_id: -1</li>
+ <li>USECASE_page_id: -1</li>
+ </ul>
+ <li>Next, get the pageID of the SCPF result page just generated, and run
+ this job again with "SCPF_page_id" as the known pageID to generate <b>SCPF individual
+ result pages</b>.<ul>
+ <li>top_level_page_id: -1</li>
+ <li>SCPF_page_id: <i>page ID of SCPF result page</i></li>
+ <li>USECASE_page_id: -1</li>
+ </ul>
+ <li>Finally, get the pageID of the USECASE result page, and run
+ this job again with "USECASE_page_id" as the known pageID to generate the <b>SR results
+ page</b>.<ul>
+ <li>top_level_page_id: -1</li>
+ <li>SCPF_page_id: -1</li>
+ <li>USECASE_page_id: <i>page ID of USECASE result page</i></li>
+ </ul>
+ </ol>
+
+ parameters:
+
+ - string:
+ name: version
+ default: ''
+ description: |
+ <p>The version of ONOS to create wiki pages.</p>
+ <p>Must be in the format: #.## <br /> Example: "1.15"</p>
+ <p><b>DO NOT PREFIX WITH "ONOS-" OR "onos-".</b></p>
+
+ - string:
+ name: bird
+ default: ''
+ description: |
+ <p>The name of the bird representing the ONOS release.
+ This is used for the title of the version top-level result page.<br />
+ Example: "Peacock"</p>
+
+ - string:
+ name: top_level_page_id
+ default: '-1'
+ description: |
+ <p>If you know the page ID for the version top-level result page, add that here.
+ This will publish the test category pages (FUNC, HA, etc.) as child pages.<br />
+ Example: "31556529" is the pageID for <a href="https://wiki.onosproject.org/pages/viewpage.action?pageId=31556529">ONOS-1.15 (Peacock)</a><br />
+ Example: "-1" means the page does not exist yet or is not needed for this run.
+ </p>
+
+ - string:
+ name: SCPF_page_id
+ default: '-1'
+ description: |
+ <p>If you know the page ID for the SCPF results front page, add that here.
+ This will publish the SCPF individual test child pages.<br />
+ Example: "31556549" is the pageID for <a href="https://wiki.onosproject.org/pages/viewpage.action?pageId=31556549">1.15-Performance and Scale-out</a><br />
+ Example: "-1" means the page does not exist yet or is not needed for this run.
+ </p>
+
+ - string:
+ name: USECASE_page_id
+ default: '-1'
+ description: |
+ <p>If you know the page ID for the USECASE results front page, add that here.
+ This will publish the SR front page as a child page.<br />
+ Example: "31556579" is the pageID for <a href="https://wiki.onosproject.org/pages/viewpage.action?pageId=31556579">1.15-USECASE</a><br />
+ Example: "-1" means the page does not exist yet or is not needed for this run.
+ </p>
+
+
+ - lf-infra-parameters:
+ project: 'OnosSystemTest'
+ branch: 'master'
+ stream: 'master'
+ lftools-version: '<1.0.0'
+
+ pipeline-scm:
+ script-path: '{jenkins-path}/generateReleaseTestONWiki.groovy'
+ scm:
+ - git:
+ url: '{gitURL}'
+ branches:
+ - 'master'
+
- project:
name: pipeline-trigger
project-name: pipeline-trigger