Skip to content

Commit

Permalink
adding Jenkinsfile with pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
stefkor committed Jul 8, 2022
1 parent 3c3249e commit 0a228c2
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Example Voting App
=========

This is a sample instavote application.

Getting started
---------------

Expand Down
11 changes: 11 additions & 0 deletions worker/.project
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<filteredResources>
<filter>
<id>1657178203326</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
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
37 changes: 37 additions & 0 deletions worker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pipeline {
agent any
tools {
Maven 3.8.6
}
stages {
stage('build') {
steps {
echo 'Compiling worker app'
dir('worker') {
sh 'mvn compile'
}
}
}
stage('test') {
steps {
echo 'Running Unit Tests on worker app'
dir('worker') {
sh 'mvn compile'
}
}
}
stage('package') {
steps {
echo 'Packaging worker app'
dir('worker') {
sh 'mvn compile'
}
}
}
}
post {
always {
echo 'Build pipeline for worker app is completed...'
}
}
}
Binary file added worker/target/test-classes/worker/UnitWorker.class
Binary file not shown.

0 comments on commit 0a228c2

Please sign in to comment.