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
Empty file modified .drone.yml
100644 → 100755
Empty file.
Empty file modified .envs
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Voting App

#this is a sample voting app again
this application is based on Docker's example [voting app](https://github.com/docker/example-voting-app).


Expand Down
Empty file modified codefresh.all.yml
100644 → 100755
Empty file.
Empty file modified codefresh.deploy.yml
100644 → 100755
Empty file.
Empty file modified deployment.simple.yml
100644 → 100755
Empty file.
Empty file modified deployment.yml
100644 → 100755
Empty file.
Empty file modified digital-token
100644 → 100755
Empty file.
Empty file modified docker-compose-cf-example.yml
100644 → 100755
Empty file.
Empty file modified docker-compose-demo.yml
100644 → 100755
Empty file.
Empty file modified docker-compose-simple.yml
100644 → 100755
Empty file.
Empty file modified docker-compose.v3.yml
100644 → 100755
Empty file.
Empty file modified docker-compose.yml
100644 → 100755
Empty file.
Empty file modified drone/drone.sqlite
100644 → 100755
Empty file.
Empty file modified images/architecture.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/buildbutton.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/builddialog.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/buildfull.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/pipelines.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/settings.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified kube-deployment.yaml
100644 → 100755
Empty file.
Empty file added new.test
Empty file.
Empty file modified result/.vscode/launch.json
100644 → 100755
Empty file.
Empty file modified result/Dockerfile
100644 → 100755
Empty file.
Empty file modified result/codefresh.build.and.push.yml
100644 → 100755
Empty file.
Empty file modified result/codefresh.yml
100644 → 100755
Empty file.
Empty file modified result/docker-compose.test.yml
100644 → 100755
Empty file.
Empty file modified result/package.json
100644 → 100755
Empty file.
Empty file modified result/server.js
100644 → 100755
Empty file.
Empty file modified result/tests/Dockerfile
100644 → 100755
Empty file.
Empty file modified result/tests/render.js
100644 → 100755
Empty file.
Empty file modified result/views/app.js
100644 → 100755
Empty file.
Empty file modified result/views/index.html
100644 → 100755
Empty file.
Empty file modified result/views/socket.io.js
100644 → 100755
Empty file.
Empty file modified result/views/stylesheets/style.css
100644 → 100755
Empty file.
Empty file modified swarm_add
100644 → 100755
Empty file.
Empty file modified vote/.drone.yml
100644 → 100755
Empty file.
Empty file modified vote/Dockerfile
100644 → 100755
Empty file.
Empty file modified vote/app.py
100644 → 100755
Empty file.
Empty file modified vote/codefresh.build.and.push.yml
100644 → 100755
Empty file.
Empty file modified vote/codefresh.yml
100644 → 100755
Empty file.
Empty file modified vote/deploy.to.ecs.yml
100644 → 100755
Empty file.
Empty file modified vote/push.with.credentials.yml
100644 → 100755
Empty file.
Empty file modified vote/requirements.txt
100644 → 100755
Empty file.
Empty file modified vote/static/stylesheets/style.css
100644 → 100755
Empty file.
Empty file modified vote/templates/index.html
100644 → 100755
Empty file.
Empty file modified worker/Dockerfile
100644 → 100755
Empty file.
Empty file modified worker/Dockerfile.j
100644 → 100755
Empty file.
62 changes: 62 additions & 0 deletions worker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
pipeline {
agent any

tools {
maven 'maven'
}
stages{
stage('build'){
when{
branch 'master'
changeset "**/worker"
}
steps{
echo "compiling worker app"
dir('worker'){
sh 'mvn compile'
}
}
}

stage('test'){
when{
branch 'master'
changeset "**/worker"
}
steps{
echo "running unit tests"
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{
always{
echo 'Building multibranch pipeline for worker is completed..'
}
failiure{
slackSend (channel: "instavote-cd", message: "Build Failed -
${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)")
}
success{
slackSend (channel: "instavote-cd", message: "Build Succeeded - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)")
}
}
}

4 changes: 4 additions & 0 deletions worker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[![Build Status](http://192.168.219.219:8081/buildStatus/icon?job=compile)](http://192.168.219.219:8081/job/compile/)


NEW
Empty file modified worker/codefresh.build.and.push.yml
100644 → 100755
Empty file.
Empty file modified worker/codefresh.yml
100644 → 100755
Empty file.
Empty file added worker/new
Empty file.
Empty file added worker/new.txt
Empty file.
Empty file added worker/new.txt2
Empty file.
Empty file modified worker/pom.xml
100644 → 100755
Empty file.
Empty file modified worker/src/Worker/Program.cs
100644 → 100755
Empty file.
Empty file modified worker/src/Worker/project.json
100644 → 100755
Empty file.
Empty file modified worker/src/main/java/worker/Worker.java
100644 → 100755
Empty file.