![]() |
|
|
|
|
Change By:
|
Michael Rentschler
(27/Jan/15 8:48 AM)
|
|
Issue Type:
|
Task
Bug
|
|
Description:
|
With ticket JENKINS-24380, the BUILD_ID was changed from timestamp to the build number in version 1.597: {quote}
Stop using the formatted {{timestamp}} to compute {{Run.id}}, and just use the build number as the directory name, so that
{quote}
This change affected the content of the environment variable
{
code
{BUILD_ID
}
r
} too, becoming equal to the content of {{BUILD_NUMBER}}
.
getId()
I used the {{BUILD_ID}} variable in my jobs to detect the time, the current build was started
.
equals(String
Now I can not do this anymore
.
valueOf
Please consider to introduce another variable that will transport the earlier content of {{BUILD_ID}}. E.g. create a new environment variable called "BUILD_TIMESTAMP". So long, I use the EnvInject plugin together with this Groovy script as a workaround:
{quote} return [BUILD_TIMESTAMP:currentBuild.getTime
(
r
)
.
number
format("yyyy-MM-dd_HH-mm-ss"
)
)
]
{
code
quote
}
in which case
The change makes it also necessary to fix
the
content of the "env-vars.html" file (help link below a Windows Batch Command entry). Description of
{{
timestamp
BUILD_ID
}}
would have to
must
be
made a nontransient field (but
changed and
{{
number
BUILD_TIMESTAMP
}}
could
must
be
transient)
added
.
Then build number symlinks could be dispensed with, saving some hassle and overhead; and
The
{{
AbstractLazyLoadRunMap
zentimestamp
}}
could
plugin will become invalid after this change. It must
be
greatly simplified, since
changed to affect
the
disk location would be immediately predictable from
content of
the
number, which is what most API calls care about
variable {{BUILD_TIMESTAMP}} variable
.
The downside is that there would have to be a one-time migration, which could be slow on a big installation, and not reversible.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.