Skip to content

Commit

Permalink
Timestamps in Jenkins log
Browse files Browse the repository at this point in the history
  • Loading branch information
R. Kaleta committed Jun 5, 2023
1 parent 557df96 commit 4d48c58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ pipeline {
}

options {
skipDefaultCheckout true
skipDefaultCheckout(true)
timeout(time: 20, unit: 'MINUTES')
buildDiscarder logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
timestamps()
}

stages {
stage("Preparation") {
steps {
script {
def scmEnv = checkout scm
def scmEnv = checkout(scm)
currentBuild.displayName = "${env.BUILD_NUMBER} ${scmEnv.GIT_COMMIT.take(8)}"
}
}
Expand Down

0 comments on commit 4d48c58

Please sign in to comment.