mschuchard / jenkins-devops-libs

Collection of Jenkins Pipeline shared libraries for common DevOps software.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line 49 in utils.groovy is missing brackets

mariadinkova opened this issue · comments

It currently is
if File(dir).exists() {
Due to that Jenkins is throwing an error
I believe it should be
if (File(dir).exists()) {
Once I fixed it manually - Jenkins did not threw error for this particular issue

Groovy syntax checker confirms:

49: expecting '(', found 'File' @ line 49, column 6.
if File(dir).exists() {
^
1 error

Fix staged for upcoming commit.