No signature of methord error

237 views
Skip to first unread message

alvin....@iinerds.com

unread,
Dec 20, 2016, 6:24:41 AM12/20/16
to job-dsl-plugin
I have updated my DSL plugin and I'm getting the following error when I run the seed-job. It was working fine with the old DSL plugin.

line 8) No signature of method: javaposse.jobdsl.dsl.helpers.scm.GitContext.mergeOptions() is applicable for argument types: (java.lang.String, java.lang.String) values: [origin, master]
Here is my groovy code which I'm facing problems. Please help me to fix this issue. job
('PR-analytics') { scm { git { remote { url 'g...@bitbucket.org:${repositoryOwner}/${repositoryName}.git' } branch '*/${sourceBranch}' mergeOptions 'origin', 'master' } } Regards,
Alvin Jaison

Sai Kishore

unread,
Dec 20, 2016, 6:41:02 AM12/20/16
to job-dsl...@googlegroups.com
hey you can try something like this 

job('PR-analytics') {
    scm {
        git {
            remote {
                url 'g...@bitbucket.org:${repositoryOwner}/${repositoryName}.git'
            }
           
            
extensions {
                mergeOptions {
                    remote('origin')
                    branch('*/${sourceBranch}')
                }
        }
    }
}
}

This will work with latest DSL

Thanks
Sai kishore Amirishetty

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/3f754bab-5169-4c6a-ad2c-d90023eaf853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

alvin....@iinerds.com

unread,
Dec 20, 2016, 9:43:52 AM12/20/16
to job-dsl-plugin
Thank you very much Sai Kishore!

I have changed my code to the following and it is working:

scm {

        git {

            remote {

                url 'g...@bitbucket.org:${repositoryOwner}/${repositoryName}.git'

            }

            branch '*/${sourceBranch}'

            extensions {

                mergeOptions {

                    remote('origin')

                    branch('master')

                    strategy('default')

                }

        }

        }

    }

Regards,

Alvin Jaison

Reply all
Reply to author
Forward
0 new messages