[英]IntelliJ and jenkins pipeline shared library project
我剛開始使用IntelliJ,我的SharedLibrary越來越大,所以我想轉移到IDE。 我得到* .gdsl自動完成等(基本的東西工作:))
但是,當我的腳本使用@Library表示法時,我會收到錯誤(無法解析符號等),我在java世界中的'孩子'(.net daily),我想我錯過了一些Jenkins依賴但是哪個?
build.gradle
repositories {
maven { url 'http://repo.jenkins-ci.org/releases/'}
maven { url 'http://updates.jenkins-ci.org/download/plugins/'}
maven { url 'http://jenkins-updates.cloudbees.com/download/plugins/'}
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.11'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'org.jenkins-ci.main:jenkins-core:2.97'
compile 'org.jenkins-ci.plugins:pipeline-input-step:2.5'
compile 'org.jenkins-ci.plugins.workflow:workflow-cps:2.1'
compile 'org.jenkins-ci.plugins:credentials-binding:1.10'
compile fileTree(dir: 'lib', include: ['*.jar'])
}
這個項目只適用於SharedLibrary,沒有別的:)任何提示?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.