I have updated gradle
from 4.6
to 6.1
, now the problem is I cant see any information printed on jenkins console upon running publishBootJavaPublicationToMavenRepository
task.
Before after this task use to see something like Upload: http://nexusblabla.war
but now nothing is printing with this task.
Jenkins→ Manage Jenkins→ Configure Jenkins→ Configure system. Under "Gradle Installations" type in name (it appears as version in project configuration), check "Install automatically" and select version. Then you can select that "Gradle version" in project configuration.
Configuration. Gradle configuration is performed in the Configure System (before Jenkins 2.0) or Global Tool Configuration (starting in Jenkins 2.0). In both cases these options reside in the Manage Jenkins section.
If you simply would like to get back the log messages for uploaded files, then you have to use Gradle’s --info
command line option. To stay with your example:
gradle --info publishBootJavaPublicationToMavenRepository
I don’t know why but obviously the log level for these messages has changed from LIFECYLCE
to INFO
with Gradle 4.10. You can see the difference with the --debug
option when publishing:
11:44:55.666 [LIFECYCLE] [org.gradle.internal.resource.transfer.ProgressLoggingExternalResourceUploader] Upload http://127.0.0.1:8000/com/example/foo/1.0.0/foo-1.0.0.zip
11:55:44.666 [INFO] [org.gradle.api.publication.maven.internal.action.LoggingMavenTransferListener] Uploading: com/example/foo/3.0.0/foo-3.0.0.zip to repository remote at http://127.0.0.1:8000/
Unfortunately, this change does neither seem to be mentioned in the release notes nor any issue/commit – or at least I couldn’t find any such mentions. For completeness’ sake, here are all release notes entries for Gradle versions newer than 4.6 that are related to console logging:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With