2017-05-16 103 views
1

當我嘗試運行如何在使用gradlew時安裝缺少的jenkins插件?

gradlew '任務'

我得到這個以下錯誤消息:

(我顯然缺少一些詹金斯插件)

* 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"] 
    } 
} 

那麼如何安裝上述插件?

回答

2

您將定義至少一個可用於外部插件的存儲庫。 Maven Central seems to have it。此外,Gradle插件門戶託管插件。你可以找到包含它的符號here

相關問題