Am trying to use below libraries to introduce a merge check
But the script could not be compiled, due to inability of resolving below classes. What i might be missing here? Please advise.
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script100.groovy: 5: unable to resolve class com.atlassian.bitbucket.scm.pull.MergeRequestCheck @ line 5, column 1. import com.atlassian.bitbucket.scm.pull.MergeRequestCheck ^ Script100.groovy: 6: unable to resolve class com.atlassian.bitbucket.scm.pull.MergeRequestCheckContext @ line 6, column 1. import com.atlassian.bitbucket.scm.pull.MergeRequestCheckContext ^ Script100.groovy: 7: unable to resolve class com.atlassian.bitbucket.scm.pull.MergeRequestCheckResult @ line 7, column 1. import com.atlassian.bitbucket.scm.pull.MergeRequestCheckResult ^ 3 errors
.
This interface is deprecated.
in 5.0 for removal in 6.0.
You are likely using Bitbucket of version higher than 6.0.
----
Refer to the documentation for the respective classes to find a replacement.
As @Dmitry Trubin already said, some of these classes are deprecated and you will not be able to use them with bitbucket 6 or higher. Currently, ScriprRunner for bitbucket supports Bitbucket server 7.5.0 or higher.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.