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

Zentimestamp plugin no longer compatible with Jenkins 1.597

    XMLWordPrintable

    Details

    • Similar Issues:

      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

            Hide
            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.

            Show
            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 .
            Hide
            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.

            Show
            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.
            Hide
            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.

            Show
            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.
            Hide
            gbois Gregory Boissinot added a comment -

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

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

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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: