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 通过JobDSL插件创建绑定到文件夹的StringCredentials类型的凭据_Jenkins_Jenkins Plugins_Jenkins Job Dsl - Fatal编程技术网

Jenkins 通过JobDSL插件创建绑定到文件夹的StringCredentials类型的凭据

Jenkins 通过JobDSL插件创建绑定到文件夹的StringCredentials类型的凭据,jenkins,jenkins-plugins,jenkins-job-dsl,Jenkins,Jenkins Plugins,Jenkins Job Dsl,我正在运行Jenkins 2.204.5 使用插件: -作业dsl v1.77 -全权证书1.7 我正在尝试使用JobDSL插件代码创建绑定到文件夹的“secret Text”或“StringCredentialsImpl”类型的机密。 但是,尽管事实上,它是被提到的支持 在我的动态查看器JENKINS_URL/plugin/job dsl/api viewer/index.html中我看不到它 我所看到的是: credentials { basicSSHUserPrivateKey {}

我正在运行Jenkins 2.204.5
使用插件:
-作业dsl v1.77
-全权证书1.7

我正在尝试使用JobDSL插件代码创建绑定到文件夹的“secret Text”或“StringCredentialsImpl”类型的机密。

但是,尽管事实上,它是被提到的支持

在我的动态查看器JENKINS_URL/plugin/job dsl/api viewer/index.html中我看不到它 我所看到的是:

credentials {
basicSSHUserPrivateKey {}
certificateCredentialsImpl {}
fileSystemServiceAccountCredential {}
// OpenShift do use a dedicated authorization layer on top of Kubernetes and does not allow to access Kubernetes API using plain username/password credentials.
openShiftBearerTokenCredentialImpl {}
usernamePasswordCredentialsImpl {}
}

显然,普通凭证插件毕竟与作业dsl插件不兼容

詹金斯臭虫: