hook: use workspace as root directory

This commit is contained in:
wpetit 2022-09-21 11:26:40 +02:00
parent a6b8706753
commit b28d9f9e69

View File

@ -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.")