Commit 7443261c authored by Raphael Defosseux's avatar Raphael Defosseux

date/time in RFC 3339 format

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 6858a7c6
Pipeline #10752 passed with stage
in 0 seconds
......@@ -37,7 +37,7 @@ pipeline {
echo "GitLab Act is ${env.gitlabActionType}"
echo "GitLab Usermail is ${env.gitlabUserEmail}"
script {
JOB_TIMESTAMP = sh returnStdout: true, script: 'date --rfc-2822'
JOB_TIMESTAMP = sh returnStdout: true, script: 'date --rfc-3339=seconds | sed -e "s#+00:00##"'
JOB_TIMESTAMP = JOB_TIMESTAMP.trim()
echo "JOB_TIMESTAMP is ${JOB_TIMESTAMP}"
sh "git clean -x -d -ff"
......
......@@ -33,7 +33,7 @@
<td>TEMPLATE_GIT_COMMIT</td>
</tr>
<tr>
<td bgcolor = "lightcyan" >Job Build Time</td>
<td bgcolor = "lightcyan" >Job Build Time (UTC)</td>
<td>TEMPLATE_JOB_TIMESTAMP</td>
</tr>
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment