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

show time _span_ until next execution

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I use the next executions to estimate whether I need to run a manually triggered build after infrastructure changes for a job, which is triggered all 4 hours anyway (to avoid it running on multiple nodes nearly at the same time).

      (I know there are all kinds of plugins and settings to avoid concurrent builds, but we cannot use them for this job, as it actually makes sense to have concurrent builds, if people really changed things in between).

      Currently I have to compare the next execution time against the reported page creation time to see how far away the next job is (which gets even more complicated due to the server being in a timezone 4.5 hours away). I therefore suggest to enhance the output to something like
      <job name> <next starting time> (in <time away>)
      e.g.
      regular maintenance 18:05:00 (in 01:20:34)

      Feel free to leave seconds away, or to only create such output for jobs in the next n hours. Or make it just a tooltip on the absolute time, if you feel that the space might not be sufficient.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ignacio Albors
          Path:
          src/main/resources/hudson/plugins/nextexecutions/NextExecutionsWidget/index.jelly
          http://jenkins-ci.org/commit/next-executions-plugin/da036401adea9d5a3f8e8e8510029b9e9a4434a3
          Log:
          JENKINS-21267 Adding tooltip to show remaining time
          until next build.

          E.g.: in 2d 1h 3m

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ignacio Albors Path: src/main/resources/hudson/plugins/nextexecutions/NextExecutionsWidget/index.jelly http://jenkins-ci.org/commit/next-executions-plugin/da036401adea9d5a3f8e8e8510029b9e9a4434a3 Log: JENKINS-21267 Adding tooltip to show remaining time until next build. E.g.: in 2d 1h 3m
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ignacio Albors
          Path:
          src/main/java/hudson/plugins/nextexecutions/NextBuilds.java
          src/main/resources/hudson/plugins/nextexecutions/Messages.properties
          http://jenkins-ci.org/commit/next-executions-plugin/b5f502699d86b2829d4b1a0e09f4a0d2fc84a29a
          Log:
          JENKINS-21267 Added method to obtain the remaining time.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ignacio Albors Path: src/main/java/hudson/plugins/nextexecutions/NextBuilds.java src/main/resources/hudson/plugins/nextexecutions/Messages.properties http://jenkins-ci.org/commit/next-executions-plugin/b5f502699d86b2829d4b1a0e09f4a0d2fc84a29a Log: JENKINS-21267 Added method to obtain the remaining time.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ignacio Albors
          Path:
          pom.xml
          src/main/java/hudson/plugins/nextexecutions/NextBuilds.java
          src/main/java/hudson/plugins/nextexecutions/NextExecutionsComputerWidget.java
          src/main/java/hudson/plugins/nextexecutions/NextExecutionsWidget.java
          src/main/java/hudson/plugins/nextexecutions/columns/NextExecutionColumn.java
          src/main/resources/hudson/plugins/nextexecutions/Messages.properties
          src/main/resources/hudson/plugins/nextexecutions/NextExecutionsWidget/index.jelly
          http://jenkins-ci.org/commit/next-executions-plugin/87d044b91502d3f385715dcff8c9a6a9dc1fccd1
          Log:
          Merge branch 'JENKINS-21267'

          Conflicts:
          src/main/resources/hudson/plugins/nextexecutions/NextExecutionsWidget/index.jelly

          Compare: https://github.com/jenkinsci/next-executions-plugin/compare/321606523bef...87d044b91502

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ignacio Albors Path: pom.xml src/main/java/hudson/plugins/nextexecutions/NextBuilds.java src/main/java/hudson/plugins/nextexecutions/NextExecutionsComputerWidget.java src/main/java/hudson/plugins/nextexecutions/NextExecutionsWidget.java src/main/java/hudson/plugins/nextexecutions/columns/NextExecutionColumn.java src/main/resources/hudson/plugins/nextexecutions/Messages.properties src/main/resources/hudson/plugins/nextexecutions/NextExecutionsWidget/index.jelly http://jenkins-ci.org/commit/next-executions-plugin/87d044b91502d3f385715dcff8c9a6a9dc1fccd1 Log: Merge branch ' JENKINS-21267 ' Conflicts: src/main/resources/hudson/plugins/nextexecutions/NextExecutionsWidget/index.jelly Compare: https://github.com/jenkinsci/next-executions-plugin/compare/321606523bef...87d044b91502
          Hide
          ialbors Ignacio Albors added a comment -

          Added a tooltip to show remaining time until next execution as requested.

          Show
          ialbors Ignacio Albors added a comment - Added a tooltip to show remaining time until next execution as requested.
          Hide
          jwagner Justin Wagner added a comment -

          Looks good, nice work!

          Show
          jwagner Justin Wagner added a comment - Looks good, nice work!

            People

            • Assignee:
              ialbors Ignacio Albors
              Reporter:
              bananeweizen Michael Keppler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: