2016-04-05 20 views
4

最近、結果ファイルをArtifactoryに公開するJenkinsジョブを設定しました。Jenkins + Gradle + Artifactoryプラグイン(成功したビルドとデプロイメント - 失敗した最終結果)

何らかの理由で、プラグインが原因でそのジョブが失敗するようです。デプロイメントは正しく、ビルドは正常に終了します。しかし、最終結果は失敗です。私たちは、

ジェンキンスログのGradle 2.8を使用している

以下の通りです:

Jenkins Artifactory Plugin version: 2.4.7 
[Warning] No Gradle build configured 
+ export GRADLE_HOME=/root/gradle/gradle-2.8 
+ export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript 
+ export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib 
+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/gradle/gradle-2.8/bin:/usr/lib/oracle/12.1/client64/lib 
+ gradle clean fC fM test jar artifactoryPublish 
[buil[email protected]1ef31f71][0][buildinfo] Properties file found at '/tmp/buildInfo766351637837418080.properties' 
:cleanQuerydslSourcesDir 
:clean 
:initQuerydslSourcesDir 
:compileQuerydslwarning: [options] bootstrap class path not set in conjunction with -source 1.7 

//BLABLABLABLABLA 

:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 

:processResources 
:classes 
:compileTestJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7 

:processTestResources 
:testClasses 
:flywayClean 
:flywayMigrate 
:test 
2016-04-05 09:53:53.338 INFO 10455 --- [  Thread-5] s.c.a.AnnotationConfigApplicationContext : Closing org.spring[email protected]368edf2b: startup date [Tue Apr 05 09:52:46 UTC 2016]; root of context hierarchy 
2016-04-05 09:53:53.351 INFO 10455 --- [  Thread-5] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 
:jar 
:generatePomFileForMavenJavaPublication 
:artifactoryPublish 
Deploying artifact: http://xxxxxxxxxxxxxxxxxx/artifactory/libs-release-local/xxxxxxxxxxxxxxxxxxxxxxxxxx.jar 
Deploying artifact: http://xxxxxxxxxxxxxxxxxx/artifactory/libs-release-local/xxxxxxxxxxxxxxxxxxxxxxxxxx.pom 
Deploying build descriptor to: http://xxxxxxxxxxxxxxxx/artifactory/api/build 
Build successfully deployed. Browse it in Artifactory under http://xxxxxxxxxxxxxxxxxxxxxx/artifactory/webapp/builds/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/127 

BUILD SUCCESSFUL 

Total time: 1 mins 37.345 secs 

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.8/userguide/gradle_daemon.html 
Finished: FAILURE 

問題がArtifactoryプラグインを有効にしているようです。 artifactoryPublishを実行しないと、最終結果は失敗します。しかし、Artifactoryプラグインを無効にしてプロジェクトをビルドするだけでは、すべてが魅力的です。

概要:

  • プラグイン+ =成功ビルド+成功
  • +失敗した結果を公開プラグイン+ =成功ビルド+失敗した検索結果を構築し
  • ビルド=成功ビルド+成功した結果
  • を公開+のビルド

私はこの問題を解決するためのあらゆるアイデアを非常に高く評価します。

ありがとうございました。

答えて

0

どうやらこれはジェンキンスのGradleプラグイン1.24で未解決の問題である:JENKINS-27632

現在の回避策は

+0

感謝の怒りをv1.23に戻すことです。私はv1.23にダウングレードしようとしましたが、まだ同じエラーがあります。また、Artifactoryプラグインが関与しない他のビルドは、魅力のように動作します。これにより、プラグインが問題を引き起こす可能性があると私は思うが、私はそれに関する情報を見つけていない。 – davidfm

関連する問題