From 8fa0cca5ce5675a71410d6c1cfe62a2ee0304745 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 30 Oct 2021 14:48:11 +0200 Subject: [PATCH] Adds Jenkinsfile for automated building --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..48e21a5 --- /dev/null +++ b/Jenkinsfile @@ -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 test' + } + } + stage('Deploy') { + steps { + echo 'Deploying...' + sh 'mvn verify -Dmaven.test.skip=true' + archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true + } + } + } +} \ No newline at end of file