[英]Jenkins + Gradle + Artifactory plugin (Successful build & deployment - failed end result)
我們最近設置了一個Jenkins作業,將生成的文件發布到Artifactory。
出於某種原因,該插件似乎導致該作業失敗。 部署正確,構建成功完成。 但是,最終結果是失敗。
我們正在使用Gradle 2.8
Jenkins日志如下:
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
[build_86dm4wztwe32gv2is1jb93c3t$_run_closure3$_closure12$_closure13@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.springframework.context.annotation.AnnotationConfigApplicationContext@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插件並且只構建項目,那么一切都像魅力一樣。
摘要:
任何想法,以幫助我解決這個問題將不勝感激。
非常感謝。
顯然這是Jenkins Gradle插件1.24: JENKINS-27632尚未解決的問題
目前的解決方法是恢復到v1.23
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.