Skip to content

Commit 48b6277

Browse files
committed
Debug
Signed-off-by: Brian J. Murrell <brian.murrell@intel.com>
1 parent be6cae1 commit 48b6277

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vars/commitPragmaTrusted.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ def call(Map config = [:]) {
1919
def_value = config['def_val']
2020
}
2121
msg = getCommitComment()
22+
println("Looking for ${config['pragma']} in ${msg}...")
2223
try {
2324
def (_,val) = (msg =~ /(?mi)^${config['pragma']}:\s*(.+)$/)[0]
25+
println("Found ${val}")
2426
return val
2527
} catch {
28+
println("Found nothing, returning ${def_value}")
2629
return def_value
2730
}
2831
}

0 commit comments

Comments
 (0)