Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins没有为共享库使用给定的SCM凭据_Jenkins_Svn_Shared Libraries_Credentials - Fatal编程技术网

Jenkins没有为共享库使用给定的SCM凭据

Jenkins没有为共享库使用给定的SCM凭据,jenkins,svn,shared-libraries,credentials,Jenkins,Svn,Shared Libraries,Credentials,正如Jenkins服务器的全局配置中所示,我已经正确配置了全局共享库。在管道作业中,我尝试使用指定的库,但收到错误消息,没有使用凭据从SCM签出库 库配置 名称:库 默认版本:trunk——当前映射到修订版:125 隐式加载:[] 允许覆盖默认版本:[x] 在作业最近的更改中包括@Library更改:[x] 现代SCM(o) 旧式SCM() Git() GitHub() Mercurial() Subversion(o) 项目存储库库:http://scrambled/url/repo/LI

正如Jenkins服务器的全局配置中所示,我已经正确配置了全局共享库。在管道作业中,我尝试使用指定的库,但收到错误消息,没有使用凭据从SCM签出库

库配置

  • 名称:
  • 默认版本:
    trunk
    ——当前映射到修订版:125
  • 隐式加载:
    []
  • 允许覆盖默认版本:
    [x]
  • 在作业最近的更改中包括@Library更改:
    [x]
  • 现代SCM
    (o)
  • 旧式SCM
    ()
  • Git
    ()
  • GitHub
    ()
  • Mercurial
    ()
  • Subversion
    (o)
  • 项目存储库库:
    http://scrambled/url/repo/LIBRARY
  • 凭证:
    Scrambly/*****
  • 包括分支:
    trunk,tags/*
管道

@Library('LIBRARY@trunk')

pipeline {
    // Imagine some content //
}
Checking out http://scrambled/url/repo/LIBRARY at revision 123
Using sole credentials <none> in realm ‘<http://scrambled> Scrambler’
ERROR: Subversion checkout has been canceled
org.tmatesoft.svn.core.SVNCancelException: svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:694)
Caused: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
错误消息

@Library('LIBRARY@trunk')

pipeline {
    // Imagine some content //
}
Checking out http://scrambled/url/repo/LIBRARY at revision 123
Using sole credentials <none> in realm ‘<http://scrambled> Scrambler’
ERROR: Subversion checkout has been canceled
org.tmatesoft.svn.core.SVNCancelException: svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:694)
Caused: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
签出http://scrambled/url/repo/LIBRARY 第123次修订
在域“扰码器”中使用唯一凭据
错误:Subversion签出已取消
org.tmatesoft.svn.core.SVNCancelException:svn:E200015:isvn身份验证提供程序未提供凭据;HTTP授权已取消。
位于org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:694)
原因:org.tmatesoft.svn.core.svncanceException:svn:E200015:E200015:isvn身份验证提供程序未提供凭据;HTTP授权已取消。
svn:E200015:ISVN身份验证提供程序未提供凭据;HTTP授权已取消。

虽然我将共享库配置为使用特定的凭据,但我不理解错误消息中是否有
凭据


谢谢大家的建议。

我使用https git url解决了这个问题:

https://{username}:{passwd}@xxxxx.git

Cloud如果显示您的全局共享库配置,您可以截屏并将其放入您的问题中。@yong以图像和文本的形式添加。