diff --git a/hello.java b/hello.java new file mode 100644 index 0000000..24ef858 --- /dev/null +++ b/hello.java @@ -0,0 +1,25 @@ +package org.jacoco.examples.maven.java; + +public class HelloWorld { + + public String getMessage(boolean bigger) { + if (bigger) { + return "Hello Universe!"; + } else { + return "Hello World!"; + } + } + +}package org.jacoco.examples.maven.java; + +public class HelloWorld { + + public String getMessage(boolean bigger) { + if (bigger) { + return "Hello Universe!"; + } else { + return "Hello World!"; + } + } + +} diff --git a/jenkinbackup.sh b/jenkinbackup.sh new file mode 100755 index 0000000..85adf35 --- /dev/null +++ b/jenkinbackup.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +cd /var/lib/jenkins + +ls -a | grep -w .git +if [ $? -ne 0 ];then + git init +fi +touch .gitignore +echo workspace >> .gitignore +git add * +git commit -m "jenkins_backup on `date`" +git push https://github.com/abhi6666/jenkins_backup.git master +if [ $? -eq 0 ];then + +x=`echo -e "hi, jenkins backup \n thank you"` +echo $x | mail -s "jenkins backup success on `date`" pradee.dev.999@gmail.com +else +echo $x | mail -s "jenkins backup failed on `date`" pradee.dev.999@gmail.com +fi diff --git a/jenkins_backup.sh b/jenkins_backup.sh new file mode 100755 index 0000000..917af69 --- /dev/null +++ b/jenkins_backup.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +cd /var/lib/jenkins + +ls -a | grep -w .git +if [ $? -ne 0 ];then + git init +fi +touch .gitignore +echo workspace >> .gitignore +git add * +git commit -m "jenkins_backup on `date`" +git push https://github.com/abhi6666/jenkins_backup.git master +if [ $? -eq 0 ];then +x=`echo -e "hi, jenkins backup \n thank you"` +echo $x | mail -s "jenkins backup success on `date`" bashazaid19@gmail.com +else +echo $x | mail -s "jenkins backup failed on `date`" bashazaid19@gmail.com +fi diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c7cb47a --- /dev/null +++ b/pom.xml @@ -0,0 +1,47 @@ + + 4.0.0 + + org.jacoco + org.jacoco.examples.maven.java + 1.0-SNAPSHOT + jar + + JaCoCo Maven plug-in example for Java project + http://www.eclemma.org/jacoco + + + + junit + junit + 4.10 + test + + + + + src/main/java + + + org.jacoco + jacoco-maven-plugin + 0.8.2 + + + + prepare-agent + + + + report + test + + report + + + + + + + +