Adds Jenkinsfile
All checks were successful
EpicKnarvik97/pokemon-cmd/master This commit looks good

Also fixes some typos
This commit is contained in:
Kristian Knarvik 2020-02-16 02:42:52 +01:00
parent c5c4420ac0
commit 8c6f2dfad2
6 changed files with 32 additions and 8 deletions

24
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,24 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building...'
sh 'mvn clean & mvn validate & mvn compile'
}
}
stage('Test') {
steps {
echo 'Testing...'
sh 'mvn clean & mvn test'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'mvn clean & mvn compile & mvn package & mvn verify & mvn install'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}

View File

@ -2,4 +2,4 @@
A commandline pokemon clone written in java.
This started as an assignment in computer science, but since it became quite advanced in just one week, I want to see where it might go.
This project has no clear goal, except mimicking the original pokemon games in a commandline interface. It would be interestig if people used this project as a base for custom games. There is still a lot to implement, but if it reaches a near complete stage, it should be possible to create custom types, moves pokemon, trainers, gyms, badges and maps.
This project has no clear goal, except mimicking the original pokemon games in a commandline interface. It would be interesting if people used this project as a base for custom games. There is still a lot to implement, but if it reaches a near complete stage, it should be possible to create custom types, moves pokemon, trainers, gyms, badges and maps.

View File

@ -4,4 +4,4 @@
### Steps to reproduce the behavior
### Information about java version, enviroment, project branch etc.
### Information about java version, environment, project branch etc.

View File

@ -9,7 +9,7 @@ import java.util.List;
public abstract class Item {
final String name;
final String description;
static List<Item> availableItems = new ArrayList<>();
static final List<Item> availableItems = new ArrayList<>();
/**
* Instantiates a new item