Error importing library - duplicated method slackIt(java.lang.Object)
Closed this issue · 2 comments
knapsu commented
Library version: master
or v1.0.2
Jenkins version: 2.164.3 LTS
Java version: OpenJDK 8 Update 201
I get this when adding @Library('awesome-jenkins-utils@v1.0.2')
to the scripted pipeline:
.../libs/awesome-jenkins-utils/src/org/lonkar/jenkinsutils/PipelineUtils.groovy: 135: The method with default parameters "void slackIt(java.lang.Object, java.lang.Object)" defines a method "void slackIt(java.lang.Object)" that is already defined.
. At [135:5] @ line 135, column 5.
def void slackIt(execute = true, config = [:]) {
^
yogeshlonkar commented
let me check on weekend. Haven't had time to look at it for a while
yogeshlonkar commented
Use v1.0.3
it shouldn't throw this error now