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