0
0
Jenkinsdevops~10 mins

Dashboard views configuration in Jenkins - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new dashboard view named 'MyDashboard'.

Jenkins
dashboardView('MyDashboard') {
  [1]()
}
Drag options to blanks, or click blank then click option'
Ajobs
Bcolumns
Cviews
Dfilters
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'columns' instead of 'jobs' will not list jobs in the view.
Using 'views' or 'filters' here is incorrect for defining jobs.
2fill in blank
medium

Complete the code to add a job named 'BuildProject' to the dashboard view.

Jenkins
dashboardView('MyDashboard') {
  jobs {
    [1]('BuildProject')
  }
}
Drag options to blanks, or click blank then click option'
AjobName
Bjob
CincludeJob
DaddJob
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'addJob' or 'includeJob' are not valid Jenkins DSL keywords.
Using 'jobName' is not a function and causes syntax errors.
3fill in blank
hard

Fix the error in the code to correctly add a column showing the build status.

Jenkins
dashboardView('MyDashboard') {
  columns {
    [1]()
  }
}
Drag options to blanks, or click blank then click option'
AbuildStatusColumn
BstatusColumn
CbuildColumn
DstatusBuildColumn
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'statusColumn' or 'buildColumn' are invalid and cause errors.
Misspelling the column name leads to syntax errors.
4fill in blank
hard

Fill both blanks to add a filter that shows only jobs with the name containing 'Test'.

Jenkins
dashboardView('MyDashboard') {
  filters {
    [1] {
      [2] 'Test'
    }
  }
}
Drag options to blanks, or click blank then click option'
Aname
Bcontains
Cinclude
Dfilter
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'name' instead of 'filter' for the block is incorrect.
Using 'include' instead of 'contains' does not work for filtering.
5fill in blank
hard

Fill all three blanks to configure a dashboard view with a job, a build status column, and a filter for jobs starting with 'Deploy'.

Jenkins
dashboardView('MyDashboard') {
  jobs {
    [1]('DeployApp')
  }
  columns {
    [2]()
  }
  filters {
    [3] {
      contains 'Deploy'
    }
  }
}
Drag options to blanks, or click blank then click option'
Ajob
BbuildStatusColumn
Cfilter
DincludeJob
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'includeJob' instead of 'job' causes errors.
Using wrong column names like 'statusColumn' instead of 'buildStatusColumn'.
Using 'name' instead of 'filter' for the filter block.