Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Pipeline: Enable timestamps in build log console

How can I display build timestamps for each line of a multi-branch pipeline project? Is it a supported feature? If yes, does it need to be enabled in the Jenkinsfile or is there a GUI option?

like image 802
lanoxx Avatar asked Oct 31 '17 16:10

lanoxx


People also ask

Which Jenkins plugin allows to add timestamps to the console output?

After installing the Timestamper Plugin, you have to configure each job by manually checking the "Add timestamps to the Console Output" option.


1 Answers

Adding options to the declarative pipeline

pipeline {   agent any   options { timestamps () }   // stages and rest of pipeline. } 

Credit goes to the comment above Jenkins Pipeline: Enable timestamps in build log console

like image 86
Samer Makary Avatar answered Sep 17 '22 10:09

Samer Makary