Skip to content
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Example Voting App


This is a sample of voting system
=========

Getting started
Expand Down
17 changes: 0 additions & 17 deletions worker/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,5 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions worker/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.7
38 changes: 38 additions & 0 deletions worker/src/main/java/worker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pipeline {
agent any

tools {
maven 'Maven 3.8.4'
}

stages {
stage('build') {
steps {
echo 'Compiling worker application'
dir('worker'){
sh 'mvn compile'
}
}
}

stage('test') {
steps {
echo 'Running unit Test for worker application'

}
}

stage('package') {
steps {
echo 'package worker application'
}
}
}
post{

always{
echo 'This worker pipe line is completed successfully'
}
}

}
2 changes: 2 additions & 0 deletions worker/src/test/java/worker/UnitWorker.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package worker;

import org.junit.jupiter.api.Test;

class UnitWorker {
Expand Down