shared-libs

[!TIP] references:

usage

load implicitly

@Library( 'library-name' ) _
@Library( 'library-name@library-version' ) _

// or load multiple
@Library([ 'library-name', 'library-name' ]) _

load dynamically

library identifier: 'library-name@library-version',
        retriever: modernSCM([
                 $class : 'GitSCMSource',
                 remote : 'library-git-url',
          credentialsId : 'git-credentials'
        ])

gerrit refspecs

  • refs/changes

    • mandatory:

      • +refs/heads/*:refs/remotes/@{remote}/*

      • +refs/changes/*:refs/changes/*

    • optional:

      • +refs/changes/*:refs/remotes/@{remote}/*

  • pull-request

    • +refs/pull-requests/*/from:refs/remotes/@{remote}/pr/*

    • +refs/pull/*:refs/remotes/@{remote}/pr/*

    • +refs/heads/*:refs/remotes/@{remote}/*

gerrit libs

gerrit

git

Last updated

Was this helpful?