Skip to content

Commit aa0337c

Browse files
author
R. Tyler Croy
authored
Merge pull request jenkinsci#40 from aurelije/patch-1
Update timestamperWrapper.groovy
2 parents bb1107c + 58385ef commit aa0337c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline-examples/timestamper-wrapper/timestamperWrapper.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This shows a simple build wrapper example, using the Timestamper plugin.
22
node {
33
// This is the current syntax for invoking a build wrapper, naming the class.
4-
wrap([$class: 'TimestamperBuildWrapper']) {
4+
timestamps {
55
// Just some echoes to show the timestamps.
66
stage "First echo"
77
echo "Hey, look, I'm echoing with a timestamp!"
@@ -14,4 +14,4 @@ node {
1414
stage "Second echo"
1515
echo "Wonder what time it is now?"
1616
}
17-
}
17+
}

0 commit comments

Comments
 (0)