AOEpeople / gradle-jenkins-job-dsl-plugin

Plugin for easy management of Jenkins Job DSL scripts with Gradle
MIT License
25 stars 12 forks source link

Seems like the plugin prints the current gradle version? #18

Closed Geethree closed 4 years ago

Geethree commented 4 years ago

I've confirmed that the gradle of version prints only if this plugin is applied.. it even dumps out in quiet mode. Kind of annoying, but looking through the source.. I can't find where/why that is happening?

geethree@bartertown:~/strateos/repos/lab$ ./gradlew devops:jenkins:sC -q
6.5
geethree@bartertown:~/strateos/repos/lab$ ./gradlew devops:jenkins:sC

> Configure project :devops:jenkins
6.5

Dumping the debug logs

2020-06-04T09:36:19.141-0700 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Realize task :devops:jenkins:jobDslTest' completed
2020-06-04T09:36:19.141-0700 [QUIET] [system.out] 6.5
2020-06-04T09:36:19.141-0700 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Realize task :devops:jenkins:check' started

Using version 2.8.0 of this plugin.. this action has existed for the last few version of gradle over the weeks.

Geethree commented 4 years ago

Oooooh I found it.. funny print wasn't finding this line in githubs search

https://github.com/AOEpeople/gradle-jenkins-job-dsl-plugin/blob/master/jenkins-job-dsl-gradle-plugin/src/main/groovy/com/aoe/gradle/jenkinsjobdsl/JobDslPlugin.groovy#L206

Geethree commented 4 years ago

PR opened #19

Geethree commented 4 years ago

Closing due to #19