Closed
Description
Describe the bug
I attempted to upgrade from version 7.1.0 to 7.2.0. This failed in our CI/CD pipeline.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in Cucumber
[ERROR] Cucumber.Cucumber Time elapsed: 0 s <<< ERROR!
java.lang.NullPointerException: Cannot invoke "io.cucumber.cienvironment.CiEnvironment$Git.getRemote()" because "git" is null
Running this locally works without issue. This seems related to #2438 My best guess is that the CI environment (Jenkins) is detected which triggers the assembling of the Git metadata and this fails for unknown reason.
Happy to provide any additional info, not sure what is relevant though.
To Reproduce
Well, I am not completely sure. I can only reproduce it in our CI/CD pipeline. Jenkins executes the build, a docker container is created in which the actual build is performed which runs some tests with Cucumber.
Expected behavior
Not to fail with a NullPointerException.
Your Environment
- cucumber: 7.2.0
- Docker build image: Debian 10, Maven 3.8.3
- Jenkins 2.319.1
Metadata
Metadata
Assignees
Labels
No labels