Skip to content

Commit 58385ef

Browse files
authored
Update timestamperWrapper.groovy
wrapper is not needed from 1.8+ version of pipeline
1 parent 291ebcd commit 58385ef

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)