Adding views to Jenkins
You can define new Jenkins views using the Jenkins interface, but Fuego provides a command that allows you to easily create views for boards, or for sets of related tests (by name and wildcard), from the Linux command line (inside the container).
The usage line for this command is:
The view-name parameter indicates the name of the view in Jenkins, and the job-spec parameter is used to select the jobs which appear in that view.
If the job_spec is provided and starts with an '=', then it is interpreted as one or more specific job names. Otherwise, the view is created using a regular expression statement that Jenkins uses to select the jobs to include in the view.
The simplest way to add a view for a board is to just specify the board name, like so:
When no job specification is provided, the 'add-view' command will create one by prefixing the view name with wildcards. For the example above, the job spec would consist of the regular expression ".*myboard.*".
This would only include the jobs that started with "Bench" in the "Bench" view. Benchmark jobs for other boards would not be included, since they only have "Benchmark" somewhere in the middle of their job name - not at the beginning.
This example creates a view for "fuego" tests. This view would include any job that has the word "fuego" as part of it. By convention, all Fuego self-tests have part of their name prefixed with "fuego_".
And the following command will show all the batch jobs defined in the system:
In this command, the view would be named "network-tests", and it would show the jobs "docker.default.Functional.ipv6connect" and "docker.default.Functional.netperf".