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

Add Jenkinsfile for Continuous Integration Setup #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

buriburi-nik
Copy link

This pull request introduces a Jenkinsfile to set up Continuous Integration for the mock-company-webapp repository. The Jenkinsfile includes two main stages: Build and Test.

  • Build Stage: Executes the Gradle build task using ./gradlew assemble to compile the application.
  • Test Stage: Runs unit tests using ./gradlew test to ensure code quality and correctness.

Additionally, the post-processing steps include:

  • Collecting test results in JUnit format for easy reporting.
  • Archiving build artifacts (JAR files) to allow for further deployment or inspection.

This CI setup will help maintain code quality by automatically running builds and tests on each commit.

To demonstrate the CI setup, I modified the SearchService class to return Collections.emptyList() to simulate a failing test case. This change has been validated by confirming that the CI pipeline fails as expected.

Please review the changes and let me know if there are any questions or further adjustments needed.

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

Successfully merging this pull request may close these issues.

1 participant