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

ok #232

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open

ok #232

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2fd20ed
adding readme
kechtoni-py Feb 26, 2022
1b44c72
Update README.md
kechtoni-py Feb 26, 2022
22407e1
adding build status badge
kechtoni-py Feb 26, 2022
5cceb26
Update README.md
kechtoni-py Feb 26, 2022
16c655a
added badge unit test jenkins job
kechtoni-py Feb 26, 2022
30c4e6f
Update README.md
kechtoni-py Feb 26, 2022
5c91e3d
Updated badges color
kechtoni-py Feb 26, 2022
88b8c20
added readme file
kechtoni-py Feb 26, 2022
fc257a0
challenge
kechtoni-py Feb 27, 2022
bd687b4
Delete ceros-devops-code-challenge-main.zip
kechtoni-py Feb 27, 2022
8e296e5
Add files via upload
kechtoni-py Feb 27, 2022
4ecb36b
Delete ceros-devops-code-challenge-main.zip
kechtoni-py Mar 1, 2022
2dad94e
Update README.md
kechtoni-py Mar 2, 2022
76cc099
Update README.md
kechtoni-py Mar 2, 2022
b34339c
Update README.md
kechtoni-py Mar 2, 2022
42023cb
Update README.md
kechtoni-py Mar 2, 2022
38b309c
Update README.md
kechtoni-py Mar 2, 2022
05cfa0c
added a new line
kechtoni-py Mar 2, 2022
93365e9
added app info
kechtoni-py Mar 2, 2022
b1fe40e
Merge pull request #1 from kechtoni-py/readme
kechtoni-py Mar 2, 2022
97bd019
adding jenkinsfile
kechtoni-py Mar 2, 2022
4dee983
Merge pull request #2 from kechtoni-py/master
kechtoni-py Mar 2, 2022
931b7e6
jenkinsfile updated
kechtoni-py Mar 2, 2022
08cb4ba
Merge pull request #3 from kechtoni-py/feature/workerpipe
aikekwere-tc Mar 2, 2022
931b9d8
pipe for job
kechtoni-py Mar 2, 2022
ac3d135
Merge pull request #4 from kechtoni-py/master
kechtoni-py Mar 2, 2022
9fe134e
Merge pull request #5 from kechtoni-py/feature/workerpipe
kechtoni-py Mar 2, 2022
a85b41e
Merge https://github.com/kechtoni-py/example-voting-app into feature/…
kechtoni-py Mar 2, 2022
9ac5585
Merge pull request #6 from kechtoni-py/feature/workerpipe
kechtoni-py Mar 2, 2022
5fc8107
Update jenkinsfile
kechtoni-py Mar 2, 2022
b3f7081
Update jenkinsfile
kechtoni-py Mar 2, 2022
ff42b1e
Update jenkinsfile
kechtoni-py Mar 2, 2022
a6e8361
Update jenkinsfile
kechtoni-py Mar 2, 2022
0e1adf2
Update jenkinsfile
kechtoni-py Mar 2, 2022
4417a5e
use docker agent instead of maven tools
kechtoni-py Mar 6, 2022
03798e8
Merge pull request #8 from kechtoni-py/feature/dockerbuilds
kechtoni-py Mar 6, 2022
e96f2c9
Update UnitWorker.java
kechtoni-py Mar 6, 2022
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 result/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Result NodeJS Application
[![Build Status](http://34.130.10.196:8080/buildStatus/icon?job=instavote%2Fresult-build&subject=Buildt&color=Blue)](http://34.130.10.196:8080/job/instavote/job/result-build/)
[![Build Status](http://34.130.10.196:8080/buildStatus/icon?job=instavote%2Fresult-test&subject=UnitTest&color=Pink)](http://34.130.10.196:8080/job/instavote/job/result-test/)
5 changes: 5 additions & 0 deletions worker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#### Worker Java Application

[![Build Status](http://34.130.10.196:8080/buildStatus/icon?job=instavote%2Fworker-build&subject=Build&color=Blue)](http://34.130.10.196:8080/job/instavote/job/worker-build/)
[![Build Status](http://34.130.10.196:8080/buildStatus/icon?job=instavote%2Fworker-test&subject=UnitTest&color=Pink)](http://34.130.10.196:8080/job/instavote/job/worker-test/)
[![Build Status](http://34.130.10.196:8080/buildStatus/icon?job=instavote%2Fworker-package&subject=Packaget&color=Green)](http://34.130.10.196:8080/job/instavote/job/worker-package/)
44 changes: 44 additions & 0 deletions worker/jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pipeline {
agent {
docker {
image 'maven:3.6.1-jdk-8-alpine'
args '-v $HOME/.m2:/root/.m2'
}

stages {
stage('Build') {
steps {
echo 'Compiling worker app'
dir('worker'){
sh 'mvn compile'
}
}
}
stage('Test') {
steps {
echo 'Running Unit Test 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'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}
post {
echo 'pipeline for worker is complete......'
}
}
}
5 changes: 5 additions & 0 deletions worker/src/test/java/worker/UnitWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@ void sample3() {
@Test
void sample4() {

}

@Test
void sample5() {

}
}