hook: use workspace as root directory
This commit is contained in:
parent
a6b8706753
commit
b28d9f9e69
@ -1,6 +1,5 @@
|
||||
def call(String name) {
|
||||
def rootDir = pwd()
|
||||
def filepath = "${rootDir}/.jenkins/${name}.groovy"
|
||||
def filepath = "${env.WORKSPACE}/.jenkins/${name}.groovy"
|
||||
def exists = fileExists(filepath)
|
||||
if (!exists) {
|
||||
println("No hook '${filepath}' script. Skipping.")
|
||||
|
Loading…
Reference in New Issue
Block a user