Additional Gradle Command line parameters - where are they logged?

I have a Gradle build step and I went to modify the “Additional Gradle Command line parameters” field.

I want to check that the change is applied in my builds. So I run a build and go to the Build Log.
Problem is that Build Log does not log these additional parameters passed to Gradle.

Where in a build can I see which additional parameters have been passed to gradle in a gradle step?

 

0
5 comments
Hi David,

I have confirmed on my side that the additional Gradle command line parameters are passed to the command and are visible in the build logs as specified. For example, adding the --no-build-cache parameter results in the following output in the build log (please refer to the screenshot).
Please let me know if I'm missing something or exact parameters which are not visible in the logs on your side.

Best regards,
Anton
0

hi Anton, did you forget to attach the screenshot?

0

Hi David,

Sorry, the screenshot wasn't attached for some reason. Here it is:

Best regards,

Anton

0

I forgot to mention I am running that step within a docker container , can you try that please?

0
Hi David,

I have confirmed that the Gradle command is not output to the build log when the Gradle step runs inside the container. I have created a new issue for it: https://youtrack.jetbrains.com/issue/TW-86545/Additional-Gradle-command-line-parameters-are-not-output-in-the-build-logs-when-running-the-Gradle-build-step-in-the-Docker.

As a temporary workaround, I suggest creating a Command Line build step and output parameters of the build configuration there.

Best regards,
Anton
0

Please sign in to leave a comment.