Git 管道scm库问题
我正在努力加载gitlab管道库 以下是我的配置:Git 管道scm库问题,git,jenkins,jenkins-pipeline,Git,Jenkins,Jenkins Pipeline,我正在努力加载gitlab管道库 以下是我的配置: myLib = library (identifier: 'app@master', retriever: modernSCM( [$class: 'GitSCM', branches:[[name: "master"]], remote: 'https://my-url.com/git/orga/Jenkins-libs.git', cre
myLib = library (identifier: 'app@master', retriever: modernSCM(
[$class: 'GitSCM',
branches:[[name: "master"]],
remote: 'https://my-url.com/git/orga/Jenkins-libs.git',
credentialsId: 'aaaaaaa-8f3f-4e3c-8ade-6c77351e7872',
includes: '*'
])
)
主分支存在,但Jenkins一直在做NPE:
Fetching & pruning origin...
Fetching upstream changes from origin
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune
Getting remote branches...
Seen branch in repository origin/master
Seen branch in repository origin/test
Seen 2 remote branches
Checking branch test
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.NullPointerException
at jenkins.plugins.git.AbstractGitSCMSource.getPattern(AbstractGitSCMSource.java:439)
at jenkins.plugins.git.AbstractGitSCMSource.isExcluded(AbstractGitSCMSource.java:428)
at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:306)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:371)
at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:616)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:598)
有人对这个问题有线索吗?
詹金斯使用:2.7.4
问候,,
纪尧姆发现了一个问题:我必须用一个哑值定义'excludes'参数,否则它就是NPE。Jenkins 2.7.4不允许使用此代码版本: