TL;DR Is there a way to import code into the Jenkinsfile
from the local repository (other than the load
step)?
I\'ve ex
I've successfully tested a simple workaround for GIT repos having both protocols - HTTPS and SSH (I'm using BitBucket) - just configure the Jenkins job as follows (pointing to the same repository but forcing different fetch methods):
In the Branch Sources add "Checkout over SSH" option
In the Pipeline Libraries -> Source Code Management -> Project Repository use HTTPS protocol - e.g. something like https://...