Jenkins构建无法访问全局凭据(机密文件)

时间:2016-05-11 11:10:34

标签: jenkins hudson jenkins-plugins

我想在Jenkins作业中使用秘密文件作为构建环境。但是,每当我建立工作时,它都会抛出以下异常:

FATAL: hudson.model.queue.Tasks.getAuthenticationOf(Lhudson/model/Queue$Task;)Lorg/acegisecurity/Authentication;
java.lang.NoSuchMethodError: hudson.model.queue.Tasks.getAuthenticationOf(Lhudson/model/Queue$Task;)Lorg/acegisecurity/Authentication;
at com.cloudbees.plugins.credentials.CredentialsProvider.getDefaultAuthenticationOf(CredentialsProvider.java:583)
at com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById(CredentialsProvider.java:654)
at com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById(CredentialsProvider.java:608)
at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials(MultiBinding.java:122)
at org.jenkinsci.plugins.credentialsbinding.impl.FileBinding.bindSingle(FileBinding.java:52)
at org.jenkinsci.plugins.credentialsbinding.Binding.bind(Binding.java:126)
at org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper.setUp(SecretBuildWrapper.java:58)
at hudson.model.Build$BuildExecution.doRun(Build.java:154)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
at hudson.model.Run.execute(Run.java:1593)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:247)

为了达到这个目的,我已经安装了#34; Credentials Binding插件"以及所有相关插件,并在Jenkins的全局凭据部分配置了秘密文件的详细信息。

注意:如果我取消选择此选项(使用秘密文本或文件),则作业正在建设中。

是否有任何我缺少阅读文件(全局凭证)或如何阅读此文件?

0 个答案:

没有答案