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

Zentimestamp plugin no longer compatible with Jenkins 1.597

    XMLWordPrintable

Details

    Description

      With Jenkins 1.597, the environment variable BUILD_ID was changed from timestamp to the build number. The zentimestamp plugin can not alter the content of BUILD_ID anymore. A new environment variable should be introduced, like BUILD_TIMESTAMP. This can be modified by the plugin then.

      Attachments

        Issue Links

          Activity

            mre_mchp Michael Rentschler added a comment - - edited

            With older Jenkins versions, the timestamp environment variable (formerly BUILD_ID) was
            already set to the default timestamp format by the Jenkins core and was only modified by the Zen Timestamp plugin if the option "Change date pattern" was checked (inside the job or node configuration) and a different format was selected.

            The new Zen plugin must be fixed to set the BUILD_TIMESTAMP variable in any case, even if there was no format defined inside the job or node configuration, by using the default timestamp format. This must be done by the plugin now, since BUILD_TIMESTAMP is not set by the core anymore.

            mre_mchp Michael Rentschler added a comment - - edited With older Jenkins versions, the timestamp environment variable (formerly BUILD_ID) was already set to the default timestamp format by the Jenkins core and was only modified by the Zen Timestamp plugin if the option "Change date pattern" was checked (inside the job or node configuration) and a different format was selected. The new Zen plugin must be fixed to set the BUILD_TIMESTAMP variable in any case , even if there was no format defined inside the job or node configuration, by using the default timestamp format. This must be done by the plugin now, since BUILD_TIMESTAMP is not set by the core anymore .

            It must be right enough to install the Zen Timestamp plugin, then the BUILD_TIMESTAMP environment variable should be set for each build, using the default/legacy timestamp format. No further configuration needed, unless the timestamp format must be changed.

            mre_mchp Michael Rentschler added a comment - It must be right enough to install the Zen Timestamp plugin, then the BUILD_TIMESTAMP environment variable should be set for each build, using the default/legacy timestamp format. No further configuration needed, unless the timestamp format must be changed.
            tobeychris Chris Tobey added a comment -

            This should also expose the BUILD_TIMESTAMP for jenkins pre-1.597 so that this plugin can be applied, jobs can be updated to use the BUILD_TIMESTAMP variable, and then Jenkins can be updated separately and at a later time, with no changes needed.

            tobeychris Chris Tobey added a comment - This should also expose the BUILD_TIMESTAMP for jenkins pre-1.597 so that this plugin can be applied, jobs can be updated to use the BUILD_TIMESTAMP variable, and then Jenkins can be updated separately and at a later time, with no changes needed.

            From 4.x, the zentimestamp plugin uses the BUILD_TIMESTAMP variable.

            gbois Gregory Boissinot added a comment - From 4.x, the zentimestamp plugin uses the BUILD_TIMESTAMP variable.

            For populate a BUILD_TIMESTAMP in any case, please make another issue.

            gbois Gregory Boissinot added a comment - For populate a BUILD_TIMESTAMP in any case, please make another issue.

            People

              schristou Steven Christou
              mre_mchp Michael Rentschler
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: