gpt4 book ai didi

java - 使用 gradlew 时如何安装缺少的 jenkins 插件?

转载 作者:行者123 更新时间:2023-11-30 02:32:13 24 4
gpt4 key购买 nike

当我尝试运行时

gradlew 'task'

我收到以下错误消息:

(我显然缺少一些 Jenkins 插件)

* What went wrong:
Error resolving plugin [id: 'com.terrafolio.jenkins', version: '1.3.2'].
> Could not resolve all dependencies for configuration 'detachedConfiguration1'.
> Could not find org.jenkins-ci.plugins:job-dsl-core:1.42.
Searched in the following locations:
https://plugins.gradle.org/m2/org/jenkins-ci/plugins/job-dsl-
core/1.42/job-dsl-core-1.42.pom
https://plugins.gradle.org/m2/org/jenkins-ci/plugins/job-dsl-
core/1.42/job-dsl-core-1.42.jar
Required by:
unspecified:unspecified:unspecified > com.terrafolio:gradle-jenkins-plugin:1.3.2

我的任务如下所示:(运行 groovy 脚本)

task testDeployOsb << {
javaexec {
classpath = configurations.osb
main = 'groovy.ui.GroovyMain'
args = ["support-scripts/deployAlsb.groovy",
"${buildDir}/deployment.groovy"]
jvmArgs = ["-Dweblogic.MaxMessageSize=200000000",
"-Dweblogic.CompleteT3MessageTimeout=480",
"-Dweblogic.CompleteMessageTimeout=480",
"-Dweblogic.wsee.transport.read.timeout=600000",
"-Dweblogic.wsee.transport.connection.timeout=600000"]
}
}

那么我该如何安装上述插件呢?

最佳答案

您将至少定义一个可以为外部插件提供服务的存储库。 Maven Central seems to have it 。 Gradle 插件门户还托管该插件。您可以找到包含它的符号 here .

关于java - 使用 gradlew 时如何安装缺少的 jenkins 插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44002668/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com