Jenkins pipeline library with gitlab as SCM

Is it possible configure Jenkins Pipeline library code in gitlab and trigger through Jenkinsfile?

Below defect reported related to the same.

Is there any update on this issue? I’m also not able to configer Gitlab as “Modern SCM” in Jenkins for retrieving the intended library on a folder based level, regardless if i use https or ssh. Via ssh it says “Connection refused”, via https it says “Access denied”.

In contrast, If i setup a brand new maven project based on the same repository, i can check it out without any problems.