Compare commits

...

4 Commits

Author SHA1 Message Date
8bf1594329 Merge pull request 'add-ci' (#4) from add-ci into main
Some checks failed
rock-paper-scissors/pipeline/head There was a failure building this commit
Reviewed-on: #4
2025-11-23 01:19:53 +01:00
Maxime Pierront
33b24c62d4 Refactor InMemoryStatRepository initialization with default stats constant, make Application.main public, update Java version to 21 in pom.xml, and remove redundant Jenkinsfile configuration.
Some checks failed
rock-paper-scissors/pipeline/pr-main There was a failure building this commit
rock-paper-scissors/pipeline/head There was a failure building this commit
2025-11-23 01:12:37 +01:00
Maxime Pierront
ac66320f9a Add Jenkinsfile for CI/CD pipeline setup, including build, test, package, and deployment stages. 2025-11-23 00:59:37 +01:00
Maxime Pierront
71cc786ea5 Add Jenkinsfile for CI/CD pipeline setup, including build, test, package, and deployment stages. 2025-11-23 00:48:59 +01:00
4 changed files with 6 additions and 11 deletions

5
Jenkinsfile vendored
View File

@@ -1,10 +1,5 @@
pipeline {
agent any
tools {
jdk 'jdk25'
}
stages {
stage('Compilation') {
steps {

View File

@@ -27,7 +27,7 @@
<url/>
</scm>
<properties>
<java.version>25</java.version>
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>

View File

@@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
static void main(String[] args) {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

View File

@@ -10,11 +10,11 @@ import java.util.Map;
@Stub
public record InMemoryStatRepository(Map<String, Integer> stats) implements StatRepository {
private final static HashMap<String, Integer> DEFAULT_STATS = new HashMap<>(Map.of("joe", 1,"eoj", 3));
public InMemoryStatRepository() {
HashMap<String, Integer> stats1 = new HashMap<>();
stats1.put("joe", 1);
stats1.put("eoj", 3);
this(stats1);
this(DEFAULT_STATS);
}
@Override