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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2 TRY

Example Voting App
=========

Expand Down
38 changes: 38 additions & 0 deletions result/Jenkinsfile.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pipeline {
agent any
tools {
maven 'maven 3.9.8'
}
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 clean test'
}
}
}
stage("package") {
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..'
}
}
}
1 change: 1 addition & 0 deletions result/test/mock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('mock test 5', () => {
});
});


describe('mock test 6', () => {
it('unit test 6', () => {
expect(true).to.be.true;
Expand Down
38 changes: 38 additions & 0 deletions worker/Jenkinsfile.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pipeline {
agent any
tools {
maven 'maven 3.9.8'
}
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 clean test'
}
}
}
stage("package") {
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..'
}
}
}