Complete the code to create a new dashboard view named 'MyDashboard'.
dashboardView('MyDashboard') { [1]() }
The jobs() block defines which jobs appear in the dashboard view.
Complete the code to add a job named 'BuildProject' to the dashboard view.
dashboardView('MyDashboard') { jobs { [1]('BuildProject') } }
The job('BuildProject') syntax adds a job to the dashboard view.
Fix the error in the code to correctly add a column showing the build status.
dashboardView('MyDashboard') { columns { [1]() } }
The correct column to show build status is buildStatusColumn().
Fill both blanks to add a filter that shows only jobs with the name containing 'Test'.
dashboardView('MyDashboard') { filters { [1] { [2] 'Test' } } }
The filter block defines a filter, and contains specifies the condition to match job names containing 'Test'.
Fill all three blanks to configure a dashboard view with a job, a build status column, and a filter for jobs starting with 'Deploy'.
dashboardView('MyDashboard') { jobs { [1]('DeployApp') } columns { [2]() } filters { [3] { contains 'Deploy' } } }
Use job('DeployApp') to add the job, buildStatusColumn() to show build status, and filter block to filter jobs containing 'Deploy'.