Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29146

Add support for Dashboard view

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Add support for adding a Dashboard View plugin (https://wiki.jenkins-ci.org/display/JENKINS/Dashboard+View) from the Job DSL scripts.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          docs/Home.md
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/DslFactory/dashboardView.groovy
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsChart.groovy
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsGrid.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/ViewFactory.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/DashboardView.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/NestedViewsContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsChartContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsGridContext.groovy
          job-dsl-core/src/main/resources/javaposse/jobdsl/dsl/views/DashboardView-template.xml
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/JobParentSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/BuildMonitorViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/CategorizedJobsViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/DashboardViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/ListViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/NestedViewSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/35c1c9363c1630c76613b42ca78022d17e49514b
          Log:
          Merge pull request #712 from daspilker/JENKINS-29146

          JENKINS-29146 added support for the Dashboard View plugin

          Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/f50edd875dfe...35c1c9363c16

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/DslFactory/dashboardView.groovy job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsChart.groovy job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsGrid.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/ViewFactory.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/DashboardView.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/NestedViewsContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsChartContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsGridContext.groovy job-dsl-core/src/main/resources/javaposse/jobdsl/dsl/views/DashboardView-template.xml job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/JobParentSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/BuildMonitorViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/CategorizedJobsViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/DashboardViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/ListViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/NestedViewSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/35c1c9363c1630c76613b42ca78022d17e49514b Log: Merge pull request #712 from daspilker/ JENKINS-29146 JENKINS-29146 added support for the Dashboard View plugin Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/f50edd875dfe...35c1c9363c16
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          docs/Home.md
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/DslFactory/dashboardView.groovy
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsChart.groovy
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsGrid.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/ViewFactory.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/DashboardView.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/NestedViewsContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsChartContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsGridContext.groovy
          job-dsl-core/src/main/resources/javaposse/jobdsl/dsl/views/DashboardView-template.xml
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/JobParentSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/BuildMonitorViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/CategorizedJobsViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/DashboardViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/ListViewSpec.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/NestedViewSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/1aec4077c6387c7eaeaef9452ed3a698aa175492
          Log:
          added support for the Dashboard View plugin

          [FIXES JENKINS-29146]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/DslFactory/dashboardView.groovy job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsChart.groovy job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext/testStatisticsGrid.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/ViewFactory.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/DashboardView.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/NestedViewsContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/DashboardPortletContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsChartContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/portlets/TestStatisticsGridContext.groovy job-dsl-core/src/main/resources/javaposse/jobdsl/dsl/views/DashboardView-template.xml job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/JobParentSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/BuildMonitorViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/CategorizedJobsViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/DashboardViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/ListViewSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/NestedViewSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/1aec4077c6387c7eaeaef9452ed3a698aa175492 Log: added support for the Dashboard View plugin [FIXES JENKINS-29146]
          Hide
          bruce Dirk Kuypers added a comment -

          Awesome, Daniel! Thanks!

          Show
          bruce Dirk Kuypers added a comment - Awesome, Daniel! Thanks!
          Show
          daspilker Daniel Spilker added a comment - Pull request: https://github.com/jenkinsci/job-dsl-plugin/pull/712
          Hide
          sag47 Sam Gleske added a comment -

          As a temporary workaround dashboards can be saved and recreated using the config.xml.

          At any dashboard view append config.xml e.g. http://localhost:8080/view/someDash/config.xml

          That XML can be saved and later recreated via the script console or Jenkins CLI. Here is an example of how I do it. That view gets loaded into Jenkins via the script console in a shell script at the root of the repository.

          Show
          sag47 Sam Gleske added a comment - As a temporary workaround dashboards can be saved and recreated using the config.xml. At any dashboard view append config.xml e.g. http://localhost:8080/view/someDash/config.xml That XML can be saved and later recreated via the script console or Jenkins CLI. Here is an example of how I do it . That view gets loaded into Jenkins via the script console in a shell script at the root of the repository.
          Hide
          bruce Dirk Kuypers added a comment -

          If I could wish some things to be supported initially... :-D

          • filter jobs by regexp
          • portlets on top of the page:
            • Test Statistics Grid
            • Test Statistics Chart
          Show
          bruce Dirk Kuypers added a comment - If I could wish some things to be supported initially... :-D filter jobs by regexp portlets on top of the page: Test Statistics Grid Test Statistics Chart

            People

            Assignee:
            daspilker Daniel Spilker
            Reporter:
            saan800 Sandra Greenhalgh
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: