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

Feature/workerpipe #304

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ Architecture
* A Postgres database backed by a Docker volume
* A Node.js webapp which shows the results of the voting in real time


Note
----

The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.
### 2022-12-04 ### 20:01
subject=Unittest
[![Build Status](http://5.61.27.73:8080/buildStatus/icon?job=instavote%2Fworker-build)](http://5.61.27.73:8080/job/instavote/job/worker-build/)

[![Build Status](http://5.61.27.73:8080/buildStatus/icon?job=instavote%2Fworker-test)](http://5.61.27.73:8080/job/instavote/job/worker-test/)

### 2022-12-05 ### 17:50
50 changes: 50 additions & 0 deletions worker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
pipeline {
agent any

tools{
maven 'maven 3.6.1'
}
stages{
stage("build"){
when{
changeset "**/worker/**"
}
steps{
echo 'Compiling worker app'
dir('worker'){
sh 'mvn compile'
}
}
}
stage("test"){
when{
changeset "**/worker/**"
}
steps{
echo 'Running Unit Tets on worker app'
dir('worker'){
sh 'mvn clean test'
}
}
}
stage("package"){
when{
branch 'master'
changeset "**/worker/**"
}
steps{
echo 'Packaging worker app'
dir('worker'){
sh 'mvn package -DskipTests'
}
}
}
}
post{
always{
archiveArtifacts artifacts: '**/target/*.jar',
fingerprint: true
echo 'Building multibranch pipeline for worker is completed..'
}
}
}