Skip to content

Commit ddd7eaf

Browse files
author
Pubudu Welagedara
committed
testing groovy library
1 parent 794cbe2 commit ddd7eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/example/Library.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.example
22

33
def getCommitHash(){
4-
"hello"
4+
sh "git rev-parse --short HEAD > commit-hash.txt"
5+
readFile('commit-hash.txt').trim()
56
}

0 commit comments

Comments
 (0)