diff --git a/.drone.yml b/.drone.yml old mode 100644 new mode 100755 diff --git a/.envs b/.envs old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 16dbfe085c..f09b9ac438 --- a/README.md +++ b/README.md @@ -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). diff --git a/codefresh.all.yml b/codefresh.all.yml old mode 100644 new mode 100755 diff --git a/codefresh.deploy.yml b/codefresh.deploy.yml old mode 100644 new mode 100755 diff --git a/deployment.simple.yml b/deployment.simple.yml old mode 100644 new mode 100755 diff --git a/deployment.yml b/deployment.yml old mode 100644 new mode 100755 diff --git a/digital-token b/digital-token old mode 100644 new mode 100755 diff --git a/docker-compose-cf-example.yml b/docker-compose-cf-example.yml old mode 100644 new mode 100755 diff --git a/docker-compose-demo.yml b/docker-compose-demo.yml old mode 100644 new mode 100755 diff --git a/docker-compose-simple.yml b/docker-compose-simple.yml old mode 100644 new mode 100755 diff --git a/docker-compose.v3.yml b/docker-compose.v3.yml old mode 100644 new mode 100755 diff --git a/docker-compose.yml b/docker-compose.yml old mode 100644 new mode 100755 diff --git a/drone/drone.sqlite b/drone/drone.sqlite old mode 100644 new mode 100755 diff --git a/images/architecture.png b/images/architecture.png old mode 100644 new mode 100755 diff --git a/images/buildbutton.png b/images/buildbutton.png old mode 100644 new mode 100755 diff --git a/images/builddialog.png b/images/builddialog.png old mode 100644 new mode 100755 diff --git a/images/buildfull.png b/images/buildfull.png old mode 100644 new mode 100755 diff --git a/images/pipelines.png b/images/pipelines.png old mode 100644 new mode 100755 diff --git a/images/settings.png b/images/settings.png old mode 100644 new mode 100755 diff --git a/kube-deployment.yaml b/kube-deployment.yaml old mode 100644 new mode 100755 diff --git a/new.test b/new.test new file mode 100755 index 0000000000..e69de29bb2 diff --git a/result/.vscode/launch.json b/result/.vscode/launch.json old mode 100644 new mode 100755 diff --git a/result/Dockerfile b/result/Dockerfile old mode 100644 new mode 100755 diff --git a/result/codefresh.build.and.push.yml b/result/codefresh.build.and.push.yml old mode 100644 new mode 100755 diff --git a/result/codefresh.yml b/result/codefresh.yml old mode 100644 new mode 100755 diff --git a/result/docker-compose.test.yml b/result/docker-compose.test.yml old mode 100644 new mode 100755 diff --git a/result/package.json b/result/package.json old mode 100644 new mode 100755 diff --git a/result/server.js b/result/server.js old mode 100644 new mode 100755 diff --git a/result/tests/Dockerfile b/result/tests/Dockerfile old mode 100644 new mode 100755 diff --git a/result/tests/render.js b/result/tests/render.js old mode 100644 new mode 100755 diff --git a/result/views/app.js b/result/views/app.js old mode 100644 new mode 100755 diff --git a/result/views/index.html b/result/views/index.html old mode 100644 new mode 100755 diff --git a/result/views/socket.io.js b/result/views/socket.io.js old mode 100644 new mode 100755 diff --git a/result/views/stylesheets/style.css b/result/views/stylesheets/style.css old mode 100644 new mode 100755 diff --git a/swarm_add b/swarm_add old mode 100644 new mode 100755 diff --git a/vote/.drone.yml b/vote/.drone.yml old mode 100644 new mode 100755 diff --git a/vote/Dockerfile b/vote/Dockerfile old mode 100644 new mode 100755 diff --git a/vote/app.py b/vote/app.py old mode 100644 new mode 100755 diff --git a/vote/codefresh.build.and.push.yml b/vote/codefresh.build.and.push.yml old mode 100644 new mode 100755 diff --git a/vote/codefresh.yml b/vote/codefresh.yml old mode 100644 new mode 100755 diff --git a/vote/deploy.to.ecs.yml b/vote/deploy.to.ecs.yml old mode 100644 new mode 100755 diff --git a/vote/push.with.credentials.yml b/vote/push.with.credentials.yml old mode 100644 new mode 100755 diff --git a/vote/requirements.txt b/vote/requirements.txt old mode 100644 new mode 100755 diff --git a/vote/static/stylesheets/style.css b/vote/static/stylesheets/style.css old mode 100644 new mode 100755 diff --git a/vote/templates/index.html b/vote/templates/index.html old mode 100644 new mode 100755 diff --git a/worker/Dockerfile b/worker/Dockerfile old mode 100644 new mode 100755 diff --git a/worker/Dockerfile.j b/worker/Dockerfile.j old mode 100644 new mode 100755 diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile new file mode 100755 index 0000000000..0c3611e609 --- /dev/null +++ b/worker/Jenkinsfile @@ -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>)") + } + } + } + diff --git a/worker/README.md b/worker/README.md new file mode 100755 index 0000000000..74b20e6b86 --- /dev/null +++ b/worker/README.md @@ -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 diff --git a/worker/codefresh.build.and.push.yml b/worker/codefresh.build.and.push.yml old mode 100644 new mode 100755 diff --git a/worker/codefresh.yml b/worker/codefresh.yml old mode 100644 new mode 100755 diff --git a/worker/new b/worker/new new file mode 100755 index 0000000000..e69de29bb2 diff --git a/worker/new.txt b/worker/new.txt new file mode 100755 index 0000000000..e69de29bb2 diff --git a/worker/new.txt2 b/worker/new.txt2 new file mode 100755 index 0000000000..e69de29bb2 diff --git a/worker/pom.xml b/worker/pom.xml old mode 100644 new mode 100755 diff --git a/worker/src/Worker/Program.cs b/worker/src/Worker/Program.cs old mode 100644 new mode 100755 diff --git a/worker/src/Worker/project.json b/worker/src/Worker/project.json old mode 100644 new mode 100755 diff --git a/worker/src/main/java/worker/Worker.java b/worker/src/main/java/worker/Worker.java old mode 100644 new mode 100755