Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json Report not generating in Gitlab CI/CD pipeline using Gradle #3567

Open
ZakiZoubian opened this issue Nov 1, 2024 · 3 comments
Open

Comments

@ZakiZoubian
Copy link

What happened?

It was observed that when running the serenity cucumber starter project with Serenity 4.2.6, when using the json plugin the json report does not generate in a Gitlab CI/CD pipeline when using Gradle.

However, when the automation is running locally on machine (MacOS), the report generates successfully.

What did you expect to happen?

Report generates in Gitlab CI/CD.

Serenity BDD version

4.2.6

JDK version

jdk17

Execution environment

Using docker image:
gradle:jdk17-alpine

How to reproduce the bug.

Setup a gitlab project with the follow .gitlab-ci.yml, and serenity cucumber starter project.
test:
image: gradle:jdk17-alpine
before_script:
- chmod +x ./gradlew
script:
- ./gradlew test

gradle-wrapper.properties:
distributionUrl=https://services.gradle.org/distributions/gradle-8.10.2-bin.zip

CucumberTestSuite.java:
@suite
@IncludeEngines("cucumber")
@SelectClasspathResource("/features")
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "io.cucumber.core.plugin.SerenityReporterParallel,pretty,timeline:build/test-results/timeline,json:target/cucumber/cucumber_report.json")
public class CucumberTestSuite {
}

How can we make it happen?

Add it to the Serenity BDD backlog and wait for a volunteer to pick it up

@ZakiZoubian
Copy link
Author

Works on:
distributionUrl=https://services.gradle.org/distributions/gradle-7.6.4-bin.zip
distributionUrl=https://services.gradle.org/distributions/gradle-8.7-bin.zip

Stops working starting at:
distributionUrl=https://services.gradle.org/distributions/gradle-8.8-bin.zip

@ZakiZoubian
Copy link
Author

i guess i have a way around this issue, we can use these gradle wrappers with the recent serenity releases: Gradle 7.6.4, or Gradle 8.3 to 8.7.

@wakaleo
Copy link
Member

wakaleo commented Nov 2, 2024

Sound's like it's related to Gradle versions. Please feel free to propose a PR or request commercial support if this is important to your organisation and/or if you need it fixed in a defined time frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants