Skip to content

Commit 934d335

Browse files
committed
Update README.md
more examples.
1 parent b44aae1 commit 934d335

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ For example:
6666
out.println params
6767
out.println 'Build Object Properties:'
6868
build.properties.each { out.println "$it.key -> $it.value" }
69-
70-
69+
70+
// output git commit info (git plugin)
71+
out.println build.environment.get('GIT_COMMIT')
72+
7173
// use it in the flow
7274
build("job1", parent_param1: params["param1"])
7375
build("job2", parent_workspace:build.workspace)

0 commit comments

Comments
 (0)