You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current multi-stage build Dockerfile executes a simple gradle build without ways of injecting variables to the test task. Tests that depend on environment variables will fail. A particular use case is an integration test that retrieves credentials from the outside.
The current multi-stage build Dockerfile executes a simple
gradle build
without ways of injecting variables to the test task. Tests that depend on environment variables will fail. A particular use case is an integration test that retrieves credentials from the outside.Expected Behaviour
I should be able to pass system properties and gradle properties to the build command, so I can add them to build.gradle.
See https://docs.gradle.org/current/userguide/build_environment.html
Current Behaviour
Assuming the following test:
Possible Solution
Allow for extra arguments in the
gradle build
command.e.g. on the Dockerfile, replace line 23:
RUN gradle build
by
Context
Can't run a test similar to the above from a Jenkins CI build.
Your Environment
docker version
(e.g. Docker 17.0.05 ):Docker 18.09.2
Kubernetes
MacOS
The text was updated successfully, but these errors were encountered: