jenkinsci / remote-file-plugin

Remote File Plugin Repository
https://plugins.jenkins.io/remote-file/
MIT License
56 stars 16 forks source link

Don't work with Gitlab Branch Source in multibranch pipeline #138

Open AntonKolyadin opened 1 year ago

AntonKolyadin commented 1 year ago

Describe the bug Pipeline don't work with Gitlab Branch Source in multibranch pipeline. Don't work code (in Remote Jenkins file):

stage('Checkout SCM') {
    steps {
        script {
            scmInfo = checkout scm
        }
    }
}

Jenkins 2.361.4 Gitlab Branch Source Plugin version 660.vd45c0f4c0042 Remote Jenkinsfile Provider Plugin version 1.23

aytuncbeken commented 1 year ago

Hi @AntonKolyadin In the multibranch pipeline, you don't need to checkout the SCM. It is automatically checking out the repo and the branch.